diff --git a/src/features/bookmark-folders/index.tsx b/src/features/bookmark-folders/index.tsx index c48ae5925..79128daa7 100644 --- a/src/features/bookmark-folders/index.tsx +++ b/src/features/bookmark-folders/index.tsx @@ -51,24 +51,28 @@ const BookmarkFolders: React.FC = () => { } /> - {bookmarkFolders?.map((folder) => ( - - {folder.emoji ? ( - - ) : } - {folder.name} - - } - /> - ))} + {bookmarkFolders?.map((folder) => { + let icon = ; + + if (folder.emoji_url) { + icon = {folder.emoji}; + } else if (folder.emoji) { + icon = ; + } + + return ( + +
{icon}
+ {folder.name} + + } + /> + ); + })} diff --git a/src/features/crypto-donate/components/lightning-address.tsx b/src/features/crypto-donate/components/lightning-address.tsx index f0223bd61..725b7e8ce 100644 --- a/src/features/crypto-donate/components/lightning-address.tsx +++ b/src/features/crypto-donate/components/lightning-address.tsx @@ -15,11 +15,8 @@ const LightningAddress: React.FC = (props): JSX.Element => { return ( - - + + diff --git a/src/features/edit-identity/index.tsx b/src/features/edit-identity/index.tsx index 451dc16af..dff342a88 100644 --- a/src/features/edit-identity/index.tsx +++ b/src/features/edit-identity/index.tsx @@ -129,7 +129,7 @@ const EditIdentity: React.FC = () => { {(account.source?.nostr?.nip05 === identifier && account.acct !== identifier) && (
- +
)} diff --git a/src/features/emoji/index.ts b/src/features/emoji/index.ts index 1ff9f555d..1efed4fcb 100644 --- a/src/features/emoji/index.ts +++ b/src/features/emoji/index.ts @@ -63,7 +63,7 @@ const validEmojiChar = (c: string) => { }; const convertCustom = (shortname: string, filename: string) => { - return `${shortname}`; + return `${shortname}`; }; const convertUnicode = (c: string) => { diff --git a/src/features/notifications/components/notification.tsx b/src/features/notifications/components/notification.tsx index 24d48b7ca..69bc27bc1 100644 --- a/src/features/notifications/components/notification.tsx +++ b/src/features/notifications/components/notification.tsx @@ -315,13 +315,11 @@ const Notification: React.FC = (props) => { const renderIcon = (): React.ReactNode => { if (type === 'pleroma:emoji_reaction' && notification.emoji) { - return ( - - ); + if (notification.emoji_url) { + return {notification.emoji}; + } else { + return ; + } } else if (validType(type)) { return ( = ({ status }): JSX. return ( - {emojiReacts.take(3).map((e, i) => { - return ( - - ); + {emojiReacts.take(3).map((emoji, i) => { + if (emoji.url) { + return {emoji.name}; + } else { + return
; + } })}
diff --git a/src/features/ui/components/modals/edit-bookmark-folder-modal.tsx b/src/features/ui/components/modals/edit-bookmark-folder-modal.tsx index 6329e5104..8b122edd3 100644 --- a/src/features/ui/components/modals/edit-bookmark-folder-modal.tsx +++ b/src/features/ui/components/modals/edit-bookmark-folder-modal.tsx @@ -63,7 +63,7 @@ const EmojiPicker: React.FC = ({ emoji, emojiUrl, ...props }) => { tabIndex={0} > {emoji - ? + ? : } diff --git a/src/features/ui/components/modals/reactions-modal.tsx b/src/features/ui/components/modals/reactions-modal.tsx index e399d4176..d3334f6ab 100644 --- a/src/features/ui/components/modals/reactions-modal.tsx +++ b/src/features/ui/components/modals/reactions-modal.tsx @@ -62,10 +62,16 @@ const ReactionsModal: React.FC = ({ onClose, statusId, reaction reactions!.forEach(reaction => items.push( { - text:
- - {reaction.count} -
, + text: ( +
+ {reaction.url ? ( + + ) : ( + + )} + {reaction.count} +
+ ), action: () => setReaction(reaction.name), name: reaction.name, }, diff --git a/src/features/ui/components/modals/select-bookmark-folder-modal.tsx b/src/features/ui/components/modals/select-bookmark-folder-modal.tsx index 672cd1a3c..6c6708981 100644 --- a/src/features/ui/components/modals/select-bookmark-folder-modal.tsx +++ b/src/features/ui/components/modals/select-bookmark-folder-modal.tsx @@ -60,25 +60,29 @@ const SelectBookmarkFolderModal: React.FC = ({ statu ]; if (!isFetching) { - items.push(...(bookmarkFolders.map((folder) => ( - - {folder.emoji ? ( - - ) : } - {folder.name} -
- } - checked={selectedFolder === folder.id} - value={folder.id} - /> - )))); + items.push(...(bookmarkFolders.map((folder) => { + let icon = ; + + if (folder.emoji_url) { + icon = {folder.emoji}; + } else if (folder.emoji) { + icon = ; + } + + return ( + +
{icon}
+ {folder.name} +
+ } + checked={selectedFolder === folder.id} + value={folder.id} + /> + ); + }))); } const body = isFetching ? : (