From 392107749c146f7fe76d78468c14d5d00a76df29 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 31 Mar 2026 14:18:16 +0800 Subject: [PATCH] Fix formatting --- src/components/custom-emojis-modal.jsx | 6 ++++-- src/locales/en.po | 18 +++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/custom-emojis-modal.jsx b/src/components/custom-emojis-modal.jsx index ed9c4da0..268782d9 100644 --- a/src/components/custom-emojis-modal.jsx +++ b/src/components/custom-emojis-modal.jsx @@ -145,7 +145,7 @@ function CustomEmojisModal({ }, [instance]); const customEmojisCatList = useMemo(() => { - const shortcodeSet = new Set(customEmojis.map(e => e.shortcode)); + const shortcodeSet = new Set(customEmojis.map((e) => e.shortcode)); const categoryMap = new Map(); const othersCat = []; customEmojis.forEach((emoji) => { @@ -160,7 +160,9 @@ function CustomEmojisModal({ categoryMap.get(emoji.category).push(emoji); }); const emojisCat = { - '--recent--': recentlyUsedCustomEmojis.filter((emoji) => shortcodeSet.has(emoji.shortcode)), + '--recent--': recentlyUsedCustomEmojis.filter((emoji) => + shortcodeSet.has(emoji.shortcode), + ), }; if (othersCat.length) { emojisCat['--others--'] = othersCat; diff --git a/src/locales/en.po b/src/locales/en.po index 66cd5f13..e3d34191 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -260,7 +260,7 @@ msgstr "View post stats" #: src/components/account-sheet.jsx:38 #: src/components/add-remove-lists-sheet.jsx:45 #: src/components/compose.jsx:1127 -#: src/components/custom-emojis-modal.jsx:279 +#: src/components/custom-emojis-modal.jsx:281 #: src/components/drafts.jsx:57 #: src/components/edit-profile-sheet.jsx:89 #: src/components/embed-modal.jsx:13 @@ -634,35 +634,35 @@ msgstr "Failed to download GIF" msgid "{0} more…" msgstr "" -#: src/components/custom-emojis-modal.jsx:285 +#: src/components/custom-emojis-modal.jsx:287 msgid "Custom emojis" msgstr "" -#: src/components/custom-emojis-modal.jsx:330 +#: src/components/custom-emojis-modal.jsx:332 msgid "Search emoji" msgstr "Search emoji" -#: src/components/custom-emojis-modal.jsx:363 +#: src/components/custom-emojis-modal.jsx:365 msgid "Error loading custom emojis" msgstr "" -#: src/components/custom-emojis-modal.jsx:374 +#: src/components/custom-emojis-modal.jsx:376 msgid "Recently used" msgstr "Recently used" -#: src/components/custom-emojis-modal.jsx:375 +#: src/components/custom-emojis-modal.jsx:377 msgid "Others" msgstr "Others" -#: src/components/custom-emojis-modal.jsx:394 +#: src/components/custom-emojis-modal.jsx:396 msgid "Zoom out" msgstr "Zoom out" -#: src/components/custom-emojis-modal.jsx:402 +#: src/components/custom-emojis-modal.jsx:404 msgid "Zoom in" msgstr "Zoom in" -#: src/components/custom-emojis-modal.jsx:409 +#: src/components/custom-emojis-modal.jsx:411 msgid "Custom emojis are not available on this server." msgstr "Custom emojis are not available on this server." -- 2.51.2