fix: icon missing in share app

pull/103/head
crazywoola 3 years ago
parent 98a9f826ea
commit c5c2780d2d

@ -2,6 +2,11 @@ import type { FC } from 'react'
import classNames from 'classnames' import classNames from 'classnames'
import style from './style.module.css' import style from './style.module.css'
import data from '@emoji-mart/data'
import { init } from 'emoji-mart'
init({ data })
export type AppIconProps = { export type AppIconProps = {
size?: 'tiny' | 'small' | 'medium' | 'large' size?: 'tiny' | 'small' | 'medium' | 'large'
rounded?: boolean rounded?: boolean
@ -34,7 +39,7 @@ const AppIcon: FC<AppIconProps> = ({
}} }}
onClick={onClick} onClick={onClick}
> >
{innerIcon ? innerIcon : icon && icon !== '' ? <em-emoji id={icon} /> : <em-emoji id={'banana'} />} {innerIcon ? innerIcon : icon && icon !== '' ? <em-emoji id={icon} /> : <em-emoji id={'banana'} />}
</span> </span>
) )
} }

@ -441,8 +441,8 @@ const Main: FC<IMainProps> = () => {
<div className='bg-gray-100'> <div className='bg-gray-100'>
<Header <Header
title={siteInfo.title} title={siteInfo.title}
icon={siteInfo.icon} icon={siteInfo.icon || ''}
icon_background={siteInfo.icon_background} icon_background={siteInfo.icon_background || '#FFEAD5'}
isMobile={isMobile} isMobile={isMobile}
onShowSideBar={showSidebar} onShowSideBar={showSidebar}
onCreateNewChat={() => handleConversationIdChange('-1')} onCreateNewChat={() => handleConversationIdChange('-1')}

Loading…
Cancel
Save