From c5c2780d2d82023d4964875d8b3163d422d3a5e8 Mon Sep 17 00:00:00 2001 From: crazywoola <427733928@qq.com> Date: Fri, 19 May 2023 17:26:53 +0800 Subject: [PATCH] fix: icon missing in share app --- web/app/components/base/app-icon/index.tsx | 7 ++++++- web/app/components/share/chat/index.tsx | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/web/app/components/base/app-icon/index.tsx b/web/app/components/base/app-icon/index.tsx index e196577bf7..ef39f77cd1 100644 --- a/web/app/components/base/app-icon/index.tsx +++ b/web/app/components/base/app-icon/index.tsx @@ -2,6 +2,11 @@ import type { FC } from 'react' import classNames from 'classnames' import style from './style.module.css' +import data from '@emoji-mart/data' +import { init } from 'emoji-mart' + +init({ data }) + export type AppIconProps = { size?: 'tiny' | 'small' | 'medium' | 'large' rounded?: boolean @@ -34,7 +39,7 @@ const AppIcon: FC = ({ }} onClick={onClick} > - {innerIcon ? innerIcon : icon && icon !== '' ? : } + {innerIcon ? innerIcon : icon && icon !== '' ? : } ) } diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx index 0d8e3503ee..f3ce070f38 100644 --- a/web/app/components/share/chat/index.tsx +++ b/web/app/components/share/chat/index.tsx @@ -441,8 +441,8 @@ const Main: FC = () => {
handleConversationIdChange('-1')}