mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 05:36:02 +08:00
fix: image icon can not display (#11701)
This commit is contained in:
parent
e20161b3de
commit
7f095bdc42
@ -3,7 +3,6 @@
|
|||||||
import type { FC } from 'react'
|
import type { FC } from 'react'
|
||||||
import { init } from 'emoji-mart'
|
import { init } from 'emoji-mart'
|
||||||
import data from '@emoji-mart/data'
|
import data from '@emoji-mart/data'
|
||||||
import Image from 'next/image'
|
|
||||||
import { cva } from 'class-variance-authority'
|
import { cva } from 'class-variance-authority'
|
||||||
import type { AppIconType } from '@/types/app'
|
import type { AppIconType } from '@/types/app'
|
||||||
import classNames from '@/utils/classnames'
|
import classNames from '@/utils/classnames'
|
||||||
@ -62,7 +61,8 @@ const AppIcon: FC<AppIconProps> = ({
|
|||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
>
|
>
|
||||||
{isValidImageIcon
|
{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='🤖' />))
|
: (innerIcon || ((icon && icon !== '') ? <em-emoji id={icon} /> : <em-emoji id='🤖' />))
|
||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
|
@ -125,7 +125,7 @@ const translation = {
|
|||||||
switchStart: 'Start switch',
|
switchStart: 'Start switch',
|
||||||
openInExplore: 'Open in Explore',
|
openInExplore: 'Open in Explore',
|
||||||
typeSelector: {
|
typeSelector: {
|
||||||
all: 'ALL Types',
|
all: 'All Types ',
|
||||||
chatbot: 'Chatbot',
|
chatbot: 'Chatbot',
|
||||||
agent: 'Agent',
|
agent: 'Agent',
|
||||||
workflow: 'Workflow',
|
workflow: 'Workflow',
|
||||||
|
@ -112,7 +112,7 @@ const translation = {
|
|||||||
removeOriginal: 'Orijinal uygulamayı sil',
|
removeOriginal: 'Orijinal uygulamayı sil',
|
||||||
switchStart: 'Geçişi Başlat',
|
switchStart: 'Geçişi Başlat',
|
||||||
typeSelector: {
|
typeSelector: {
|
||||||
all: 'ALL Types',
|
all: 'All Types',
|
||||||
chatbot: 'Chatbot',
|
chatbot: 'Chatbot',
|
||||||
agent: 'Agent',
|
agent: 'Agent',
|
||||||
workflow: 'Workflow',
|
workflow: 'Workflow',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user