chore: upgrade i18next 26, prettier 3, fontsource-variable, domhandler 6, lint-staged 17
- i18next 23->26 + react-i18next 15->17 - prettier 2->3, reformat all files - replace @fontsource/inter with @fontsource-variable/inter 5, update import path - domhandler 5->6 (aligns with transitive deps) - lint-staged 16->17
This commit is contained in:
@@ -71,7 +71,7 @@ type StickerGroupItem = {
|
||||
|
||||
const useGroups = (
|
||||
tab: EmojiBoardTab,
|
||||
imagePacks: ImagePack[]
|
||||
imagePacks: ImagePack[],
|
||||
): [EmojiGroupItem[], StickerGroupItem[]] => {
|
||||
const mx = useMatrixClient();
|
||||
|
||||
@@ -309,7 +309,7 @@ function EmojiGroupHolder({
|
||||
shortcode: emojiInfo.shortcode,
|
||||
});
|
||||
},
|
||||
[setPreviewData]
|
||||
[setPreviewData],
|
||||
);
|
||||
|
||||
const throttleEmojiHover = useThrottle(handleEmojiPreview, {
|
||||
@@ -385,7 +385,7 @@ export function EmojiBoard({
|
||||
|
||||
const previewAtom = useMemo(
|
||||
() => createPreviewDataAtom(emojiTab ? DefaultEmojiPreview : undefined),
|
||||
[emojiTab]
|
||||
[emojiTab],
|
||||
);
|
||||
const activeGroupIdAtom = useMemo(() => atom<string | undefined>(undefined), []);
|
||||
const setActiveGroupId = useSetAtom(activeGroupIdAtom);
|
||||
@@ -404,7 +404,7 @@ export function EmojiBoard({
|
||||
const [result, search, resetSearch] = useAsyncSearch(
|
||||
searchList,
|
||||
getEmoticonSearchStr,
|
||||
SEARCH_OPTIONS
|
||||
SEARCH_OPTIONS,
|
||||
);
|
||||
|
||||
const searchedItems = result?.items.slice(0, 100);
|
||||
@@ -416,9 +416,9 @@ export function EmojiBoard({
|
||||
if (term) search(term);
|
||||
else resetSearch();
|
||||
},
|
||||
[search, resetSearch]
|
||||
[search, resetSearch],
|
||||
),
|
||||
{ wait: 200 }
|
||||
{ wait: 200 },
|
||||
);
|
||||
|
||||
const contentScrollRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
@@ -17,5 +17,5 @@ export const useEmojiGroupIcons = (): IEmojiGroupIcons =>
|
||||
[EmojiGroupId.Symbol]: Icons.Peace,
|
||||
[EmojiGroupId.Flag]: Icons.Flag,
|
||||
}),
|
||||
[]
|
||||
[],
|
||||
);
|
||||
|
||||
@@ -15,5 +15,5 @@ export const useEmojiGroupLabels = (): IEmojiGroupLabels =>
|
||||
[EmojiGroupId.Symbol]: 'Symbols',
|
||||
[EmojiGroupId.Flag]: 'Flags',
|
||||
}),
|
||||
[]
|
||||
[],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user