From 653917649dc0ab66a403ceb5d63df66f09bf2c0c Mon Sep 17 00:00:00 2001 From: JzoNg Date: Tue, 19 Mar 2024 16:43:24 +0800 Subject: [PATCH] add beta tag and fix some style --- .../components/app/create-app-dialog/appForm.tsx | 15 +++------------ .../components/app/create-app-dialog/index.tsx | 7 +++++-- web/hooks/use-tab-searchparams.ts | 3 ++- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/web/app/components/app/create-app-dialog/appForm.tsx b/web/app/components/app/create-app-dialog/appForm.tsx index eee0d0648d..2cb5dcc9f8 100644 --- a/web/app/components/app/create-app-dialog/appForm.tsx +++ b/web/app/components/app/create-app-dialog/appForm.tsx @@ -16,8 +16,7 @@ import AppIcon from '@/app/components/base/app-icon' import EmojiPicker from '@/app/components/base/emoji-picker' import AppsFull from '@/app/components/billing/apps-full-in-dialog' import { AiText, ChatBot, CuteRobot } from '@/app/components/base/icons/src/vender/line/communication' -// import { AlertTriangle } from '@/app/components/base/icons/src/vender/line/alertsAndFeedback' -import { HelpCircle, InfoCircle } from '@/app/components/base/icons/src/vender/line/general' +import { HelpCircle } from '@/app/components/base/icons/src/vender/line/general' import { Route } from '@/app/components/base/icons/src/vender/line/mapsAndTravel' import TooltipPlus from '@/app/components/base/tooltip-plus' import { getRedirection } from '@/utils/app-redirection' @@ -115,11 +114,6 @@ const AppForm = ({ popupContent={
{t('app.newApp.completionDescription')}
- {/*
-
- -
{t('app.newApp.completionWarning')}
-
*/}
} > @@ -162,11 +156,6 @@ const AppForm = ({ popupContent={
{t('app.newApp.workflowDescription')}
-
-
- -
{t('app.newApp.workflowWarning')}
-
} > @@ -182,6 +171,7 @@ const AppForm = ({ >
{t('app.types.workflow')}
+ BETA @@ -223,6 +213,7 @@ const AppForm = ({ > + BETA diff --git a/web/app/components/app/create-app-dialog/index.tsx b/web/app/components/app/create-app-dialog/index.tsx index 0c9932dd04..2cc4b0b919 100644 --- a/web/app/components/app/create-app-dialog/index.tsx +++ b/web/app/components/app/create-app-dialog/index.tsx @@ -56,14 +56,17 @@ const CreateAppDialog = ({ show, onSuccess, onClose }: CreateAppDialogProps) => <>
-
{t('app.newApp.advanced')}
+
+ {t('app.newApp.advanced')} + BETA +
{t('app.newApp.advancedFor')}
{t('app.newApp.advancedDescription')}
)}
-
OR
+
OR
diff --git a/web/hooks/use-tab-searchparams.ts b/web/hooks/use-tab-searchparams.ts index ea4854e848..6a665bca5a 100644 --- a/web/hooks/use-tab-searchparams.ts +++ b/web/hooks/use-tab-searchparams.ts @@ -34,8 +34,9 @@ export const useTabSearchParams = ({ ) const setActiveTab = (newActiveTab: string) => { + setTab(newActiveTab) if (disableSearchParams) - return setTab(newActiveTab) + return router[routingBehavior](`${pathName}?${searchParamName}=${newActiveTab}`) }