From 91322f33eb502a46c2d1dc40e5c4e7e1ffae7f54 Mon Sep 17 00:00:00 2001 From: waltcow Date: Wed, 5 Apr 2023 15:29:25 +0800 Subject: [PATCH] emoji resouce CDN format override --- app/components/settings.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 1b51356e..ecf0eb82 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -1,6 +1,6 @@ import { useState, useEffect, useMemo, HTMLProps } from "react"; -import EmojiPicker, { Theme as EmojiTheme } from "emoji-picker-react"; +import EmojiPicker, { Theme as EmojiTheme, EmojiStyle, } from "emoji-picker-react"; import styles from "./settings.module.scss"; @@ -181,6 +181,9 @@ export function Settings(props: { closeSettings: () => void }) { { + return `https://cdn.staticfile.org/emoji-datasource-apple/14.0.0/img/${style}/64/${unified}.png`; + }} onEmojiClick={(e) => { updateConfig((config) => (config.avatar = e.unified)); setShowEmojiPicker(false);