mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-31 21:21:59 +08:00
Chore: remove beta tag of app type (#17676)
This commit is contained in:
parent
eb8584613b
commit
df03c89a48
@ -148,7 +148,6 @@ function CreateApp({ onClose, onSuccess, onCreateFromTemplate }: CreateAppProps)
|
|||||||
</div>
|
</div>
|
||||||
<div className='flex flex-row gap-2'>
|
<div className='flex flex-row gap-2'>
|
||||||
<AppTypeCard
|
<AppTypeCard
|
||||||
beta
|
|
||||||
active={appMode === 'advanced-chat'}
|
active={appMode === 'advanced-chat'}
|
||||||
title={t('app.types.advanced')}
|
title={t('app.types.advanced')}
|
||||||
description={t('app.newApp.advancedShortDescription')}
|
description={t('app.newApp.advancedShortDescription')}
|
||||||
@ -159,7 +158,6 @@ function CreateApp({ onClose, onSuccess, onCreateFromTemplate }: CreateAppProps)
|
|||||||
setAppMode('advanced-chat')
|
setAppMode('advanced-chat')
|
||||||
}} />
|
}} />
|
||||||
<AppTypeCard
|
<AppTypeCard
|
||||||
beta
|
|
||||||
active={appMode === 'workflow'}
|
active={appMode === 'workflow'}
|
||||||
title={t('app.types.workflow')}
|
title={t('app.types.workflow')}
|
||||||
description={t('app.newApp.workflowShortDescription')}
|
description={t('app.newApp.workflowShortDescription')}
|
||||||
@ -274,13 +272,12 @@ export default CreateAppModal
|
|||||||
|
|
||||||
type AppTypeCardProps = {
|
type AppTypeCardProps = {
|
||||||
icon: React.JSX.Element
|
icon: React.JSX.Element
|
||||||
beta?: boolean
|
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
active: boolean
|
active: boolean
|
||||||
onClick: () => void
|
onClick: () => void
|
||||||
}
|
}
|
||||||
function AppTypeCard({ icon, title, beta = false, description, active, onClick }: AppTypeCardProps) {
|
function AppTypeCard({ icon, title, description, active, onClick }: AppTypeCardProps) {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
return <div
|
return <div
|
||||||
className={
|
className={
|
||||||
@ -292,9 +289,6 @@ function AppTypeCard({ icon, title, beta = false, description, active, onClick }
|
|||||||
}
|
}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
>
|
>
|
||||||
{beta && <div className='system-2xs-medium-uppercase absolute
|
|
||||||
right-3 top-3 min-w-[18px] rounded-[5px] border
|
|
||||||
border-divider-deep px-[5px] py-[3px] text-text-tertiary'>{t('common.menus.status')}</div>}
|
|
||||||
{icon}
|
{icon}
|
||||||
<div className='system-sm-semibold mb-0.5 mt-2 text-text-secondary'>{title}</div>
|
<div className='system-sm-semibold mb-0.5 mt-2 text-text-secondary'>{title}</div>
|
||||||
<div className='system-xs-regular text-text-tertiary'>{description}</div>
|
<div className='system-xs-regular text-text-tertiary'>{description}</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user