Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
f9df23a0
Unverified
Commit
f9df23a0
authored
May 26, 2023
by
crazywoola
Committed by
GitHub
May 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: default icon (#213)
parent
17a1c057
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
NewAppDialog.tsx
web/app/(commonLayout)/apps/NewAppDialog.tsx
+2
-2
index.tsx
web/app/components/base/app-icon/index.tsx
+1
-1
index.tsx
web/app/components/explore/create-app-modal/index.tsx
+2
-2
No files found.
web/app/(commonLayout)/apps/NewAppDialog.tsx
View file @
f9df23a0
...
...
@@ -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
)
}
}
/>
}
...
...
web/app/components/base/app-icon/index.tsx
View file @
f9df23a0
...
...
@@ -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
>
)
}
...
...
web/app/components/explore/create-app-modal/index.tsx
View file @
f9df23a0
...
...
@@ -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
)
}
}
/>
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment