From 43f87c0b864c5f8983672fb8a0b0d5697ee014e3 Mon Sep 17 00:00:00 2001 From: Yi Date: Wed, 9 Oct 2024 12:53:43 +0800 Subject: [PATCH] make the drop plugin only appears when the user selects "plugins" --- web/app/(commonLayout)/plugins/Container.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/(commonLayout)/plugins/Container.tsx b/web/app/(commonLayout)/plugins/Container.tsx index 5fee5354a2..58d996e7de 100644 --- a/web/app/(commonLayout)/plugins/Container.tsx +++ b/web/app/(commonLayout)/plugins/Container.tsx @@ -29,7 +29,7 @@ const Container = () => { }, [t]) const [activeTab, setActiveTab] = useTabSearchParams({ - defaultTab: 'plugins', + defaultTab: options[0].value, }) const containerRef = useRef(null) @@ -45,7 +45,7 @@ const Container = () => {
setActiveTab(newActiveTab)} + onChange={setActiveTab} options={options} />
@@ -108,10 +108,10 @@ const Container = () => {
{/* Plugin cards go here */}
-
+ {activeTab === 'plugins' &&
Drop plugin package here to install -
+
} ) }