Skip to content

Commit

Permalink
fix: image icon can not display (#11701)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Dec 16, 2024
1 parent e20161b commit 7f095bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/app/components/base/app-icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import type { FC } from 'react'
import { init } from 'emoji-mart'
import data from '@emoji-mart/data'
import Image from 'next/image'
import { cva } from 'class-variance-authority'
import type { AppIconType } from '@/types/app'
import classNames from '@/utils/classnames'
Expand Down Expand Up @@ -62,7 +61,8 @@ const AppIcon: FC<AppIconProps> = ({
onClick={onClick}
>
{isValidImageIcon
? <Image src={imageUrl} className="w-full h-full" alt="app icon" />
// eslint-disable-next-line @next/next/no-img-element
? <img src={imageUrl} className="w-full h-full" alt="app icon" />
: (innerIcon || ((icon && icon !== '') ? <em-emoji id={icon} /> : <em-emoji id='🤖' />))
}
</span>
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/en-US/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const translation = {
switchStart: 'Start switch',
openInExplore: 'Open in Explore',
typeSelector: {
all: 'ALL Types',
all: 'All Types ',
chatbot: 'Chatbot',
agent: 'Agent',
workflow: 'Workflow',
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/tr-TR/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const translation = {
removeOriginal: 'Orijinal uygulamayı sil',
switchStart: 'Geçişi Başlat',
typeSelector: {
all: 'ALL Types',
all: 'All Types',
chatbot: 'Chatbot',
agent: 'Agent',
workflow: 'Workflow',
Expand Down

0 comments on commit 7f095bd

Please sign in to comment.