From 5ea306850ec5a1a1585e256b108f79c87ebcf8e1 Mon Sep 17 00:00:00 2001 From: Yi Date: Fri, 15 Nov 2024 16:23:11 +0800 Subject: [PATCH 1/2] fix: copy tooltip shows in wrong place --- web/app/components/base/copy-btn/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/components/base/copy-btn/index.tsx b/web/app/components/base/copy-btn/index.tsx index 750abbf5dd29cc..c6428746f20cf1 100644 --- a/web/app/components/base/copy-btn/index.tsx +++ b/web/app/components/base/copy-btn/index.tsx @@ -32,6 +32,7 @@ const CopyBtn = ({
Date: Fri, 15 Nov 2024 16:32:49 +0800 Subject: [PATCH 2/2] fix: marketplace link --- .../components/plugins/marketplace/list/card-wrapper.tsx | 6 ++++-- web/app/components/tools/marketplace/index.tsx | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/web/app/components/plugins/marketplace/list/card-wrapper.tsx b/web/app/components/plugins/marketplace/list/card-wrapper.tsx index b58afa051ffa87..fd16cd1e6b6a6d 100644 --- a/web/app/components/plugins/marketplace/list/card-wrapper.tsx +++ b/web/app/components/plugins/marketplace/list/card-wrapper.tsx @@ -8,6 +8,7 @@ import Button from '@/app/components/base/button' import { useMixedTranslation } from '@/app/components/plugins/marketplace/hooks' import InstallFromMarketplace from '@/app/components/plugins/install-plugin/install-from-marketplace' import { useBoolean } from 'ahooks' +import { useI18N } from '@/context/i18n' type CardWrapperProps = { plugin: Plugin @@ -24,6 +25,7 @@ const CardWrapper = ({ setTrue: showInstallFromMarketplace, setFalse: hideInstallFromMarketplace, }] = useBoolean(false) + const { locale: localeFromLocale } = useI18N() if (showInstallButton) { return ( @@ -54,7 +56,7 @@ const CardWrapper = ({