Profile redesign: About tab (#37851)

This commit is contained in:
Echo authored and GitHub committed 2026-02-13 13:37:39 +00:00
1 parent 6c3bd944f8
commit f5aa5adcf7
14 files changed
+455 -200

No files matched your search

@@ -92,8 +92,11 @@ export const CustomEmojiContext = createContext<ExtraCustomEmojiMap>({});
export const CustomEmojiProvider = ({
children,
emojis: rawEmojis,
}: PropsWithChildren<{ emojis?: CustomEmojiMapArg }>) => {
const emojis = useMemo(() => cleanExtraEmojis(rawEmojis) ?? {}, [rawEmojis]);
}: PropsWithChildren<{ emojis?: CustomEmojiMapArg | null }>) => {
const emojis = useMemo(() => cleanExtraEmojis(rawEmojis), [rawEmojis]);
if (!emojis) {
return children;
}
return (
<CustomEmojiContext.Provider value={emojis}>
{children}
@@ -25,7 +25,7 @@ export const EmojiHTML = polymorphicForwardRef<'div', EmojiHTMLProps>(
extraEmojis,
htmlString,
as: asProp = 'div', // Rename for syntax highlighting
className = '',
className,
onElement,
onAttribute,
...props