diff --git a/src/utils/emojify.tsx b/src/utils/emojify.tsx index aba82f5b7..449e0a06a 100644 --- a/src/utils/emojify.tsx +++ b/src/utils/emojify.tsx @@ -1,3 +1,4 @@ +import Tooltip from 'soapbox/components/ui/tooltip.tsx'; import { CustomEmoji } from 'soapbox/schemas/custom-emoji.ts'; /** Given text and a list of custom emojis, return JSX with the emojis rendered as `` elements. */ @@ -15,7 +16,11 @@ export function emojifyText(text: string, emojis: CustomEmoji[]): JSX.Element { const customEmoji = emojis.find((e) => e.shortcode === shortcode); if (customEmoji) { - parts.push({shortcode}); + parts.push( + + {shortcode} + , + ); } else { parts.push(match); }