diff --git a/web/app/(commonLayout)/apps/NewAppDialog.tsx b/web/app/(commonLayout)/apps/NewAppDialog.tsx index dccec2118f..8c0e518579 100644 --- a/web/app/(commonLayout)/apps/NewAppDialog.tsx +++ b/web/app/(commonLayout)/apps/NewAppDialog.tsx @@ -37,7 +37,7 @@ const NewAppDialog = ({ show, onSuccess, onClose }: NewAppDialogProps) => { // Emoji Picker const [showEmojiPicker, setShowEmojiPicker] = useState(false) - const [emoji, setEmoji] = useState({ icon: '🤖️', icon_background: '#FFEAD5' }) + const [emoji, setEmoji] = useState({ icon: '🤖', icon_background: '#FFEAD5' }) const mutateApps = useContextSelector(AppsContext, state => state.mutateApps) @@ -102,7 +102,7 @@ const NewAppDialog = ({ show, onSuccess, onClose }: NewAppDialogProps) => { setShowEmojiPicker(false) }} onClose={() => { - setEmoji({ icon: '🤖️', icon_background: '#FFEAD5' }) + setEmoji({ icon: '🤖', icon_background: '#FFEAD5' }) setShowEmojiPicker(false) }} />} diff --git a/web/app/components/base/app-icon/index.tsx b/web/app/components/base/app-icon/index.tsx index 0b20542733..7454734b1e 100644 --- a/web/app/components/base/app-icon/index.tsx +++ b/web/app/components/base/app-icon/index.tsx @@ -39,7 +39,7 @@ const AppIcon: FC = ({ }} onClick={onClick} > - {innerIcon ? innerIcon : icon && icon !== '' ? : } + {innerIcon ? innerIcon : icon && icon !== '' ? : } ) } diff --git a/web/app/components/explore/create-app-modal/index.tsx b/web/app/components/explore/create-app-modal/index.tsx index b1668292cf..d58f750d76 100644 --- a/web/app/components/explore/create-app-modal/index.tsx +++ b/web/app/components/explore/create-app-modal/index.tsx @@ -28,7 +28,7 @@ const CreateAppModal = ({ const [name, setName] = React.useState('') const [showEmojiPicker, setShowEmojiPicker] = useState(false) - const [emoji, setEmoji] = useState({ icon: '🤖️', icon_background: '#FFEAD5' }) + const [emoji, setEmoji] = useState({ icon: '🤖', icon_background: '#FFEAD5' }) const submit = () => { if(!name.trim()) { @@ -74,7 +74,7 @@ const CreateAppModal = ({ setShowEmojiPicker(false) }} onClose={() => { - setEmoji({ icon: '🤖️', icon_background: '#FFEAD5' }) + setEmoji({ icon: '🤖', icon_background: '#FFEAD5' }) setShowEmojiPicker(false) }} />} diff --git a/web/app/components/share/text-generation/icons/app-icon.svg b/web/app/components/share/text-generation/icons/app-icon.svg deleted file mode 100644 index 209299b582..0000000000 --- a/web/app/components/share/text-generation/icons/app-icon.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/app/components/share/text-generation/index.tsx b/web/app/components/share/text-generation/index.tsx index 3c0b2dfef4..e45073289f 100644 --- a/web/app/components/share/text-generation/index.tsx +++ b/web/app/components/share/text-generation/index.tsx @@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next' import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints' import cn from 'classnames' import { useBoolean, useClickAway } from 'ahooks' -import { useContext } from 'use-context-selector' import ConfigScence from '@/app/components/share/text-generation/config-scence' import NoData from '@/app/components/share/text-generation/no-data' // import History from '@/app/components/share/text-generation/history' @@ -12,6 +11,7 @@ import { fetchAppInfo, fetchAppParams, sendCompletionMessage, updateFeedback, sa import type { SiteInfo } from '@/models/share' import type { PromptConfig, MoreLikeThisConfig, SavedMessage } from '@/models/debug' import Toast from '@/app/components/base/toast' +import AppIcon from '@/app/components/base/app-icon' import { Feedbacktype } from '@/app/components/app/chat' import { changeLanguage } from '@/i18n/i18next-config' import Loading from '@/app/components/base/loading' @@ -24,6 +24,7 @@ import s from './style.module.css' import Button from '../../base/button' import { App } from '@/types/app' import { InstalledApp } from '@/models/explore' +import { appDefaultIconBackground } from '@/config' export type IMainProps = { isInstalledApp?: boolean, @@ -283,7 +284,7 @@ const TextGeneration: FC = ({
-
+
{siteInfo.title}
{!isPC && ( diff --git a/web/app/components/share/text-generation/style.module.css b/web/app/components/share/text-generation/style.module.css index f55dfef25f..bf8511c08a 100644 --- a/web/app/components/share/text-generation/style.module.css +++ b/web/app/components/share/text-generation/style.module.css @@ -4,13 +4,6 @@ box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03); } -.appIcon { - width: 32px; - height: 32px; - background: url(./icons/app-icon.svg) center center no-repeat; - background-size: contain; -} - .starIcon { width: 16px; height: 16px;