From 9fb7100b3f844e21761de96f9bcca77ec20c5e2a Mon Sep 17 00:00:00 2001 From: JzoNg Date: Mon, 1 Apr 2024 16:05:07 +0800 Subject: [PATCH] modify style of app type tag --- web/app/(commonLayout)/apps/AppCard.tsx | 16 +--------------- web/app/components/explore/app-card/index.tsx | 16 +--------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/web/app/(commonLayout)/apps/AppCard.tsx b/web/app/(commonLayout)/apps/AppCard.tsx index 6f28372267..cbe5780ccc 100644 --- a/web/app/(commonLayout)/apps/AppCard.tsx +++ b/web/app/(commonLayout)/apps/AppCard.tsx @@ -247,21 +247,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {
{app.name}
- {app.mode === 'advanced-chat' && ( -
{t('app.types.chatbot').toUpperCase()}
- )} - {app.mode === 'agent-chat' && ( -
{t('app.types.agent').toUpperCase()}
- )} - {app.mode === 'chat' && ( -
{t('app.types.chatbot').toUpperCase()}
- )} - {app.mode === 'completion' && ( -
{t('app.newApp.completeApp').toUpperCase()}
- )} - {app.mode === 'workflow' && ( -
{t('app.types.workflow').toUpperCase()}
- )} +
{t('app.types.chatbot').toUpperCase()}
{isCurrentWorkspaceManager && {appBasicInfo.name}
- {appBasicInfo.mode === 'advanced-chat' && ( -
{t('app.types.chatbot').toUpperCase()}
- )} - {appBasicInfo.mode === 'agent-chat' && ( -
{t('app.types.agent').toUpperCase()}
- )} - {appBasicInfo.mode === 'chat' && ( -
{t('app.types.chatbot').toUpperCase()}
- )} - {appBasicInfo.mode === 'completion' && ( -
{t('app.newApp.completeApp').toUpperCase()}
- )} - {appBasicInfo.mode === 'workflow' && ( -
{t('app.types.workflow').toUpperCase()}
- )} +
{t('app.types.chatbot').toUpperCase()}