Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: default icon (#213)

crazywoolaf9df23a091e4
diff --git a/web/app/(commonLayout)/apps/NewAppDialog.tsx b/web/app/(commonLayout)/apps/NewAppDialog.tsx
index e378560dd47..dccec2118f2 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 ef39f77cd10..0b205427330 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<AppIconProps> = ({
}}
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={'robot'} />}
</span>
)
}
diff --git a/web/app/components/explore/create-app-modal/index.tsx b/web/app/components/explore/create-app-modal/index.tsx
index 5053d96bbfb..b1668292cf2 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)
}}
/>}