From dada9d2f3f690bb41f78739131db57704828a0ae Mon Sep 17 00:00:00 2001 From: crazywoola <427733928@qq.com> Date: Thu, 19 Dec 2024 20:45:02 +0800 Subject: [PATCH] fix: wrong message --- web/app/components/tools/add-tool-modal/empty.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/web/app/components/tools/add-tool-modal/empty.tsx b/web/app/components/tools/add-tool-modal/empty.tsx index d063beab39193c..794d2a585c1379 100644 --- a/web/app/components/tools/add-tool-modal/empty.tsx +++ b/web/app/components/tools/add-tool-modal/empty.tsx @@ -8,14 +8,12 @@ const Empty = () => { return (
- {searchParams.get('category') === 'workflow' && <> -
{t('tools.addToolModal.emptyTitle')}
-
{t('tools.addToolModal.emptyTip')}
- } - {searchParams.get('category') !== 'workflow' && <> -
{t('tools.addToolModal.emptyTitleCustom')}
-
{t('tools.addToolModal.emptyTipCustom')}
- } +
+ {t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTitle' : 'emptyTitleCustom'}`)} +
+
+ {t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTip' : 'emptyTipCustom'}`)} +
) }