Skip to content

fix: image icon can not display #11701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading