From c08f98218cec5b188defbd93116b88426bed0a1d Mon Sep 17 00:00:00 2001 From: JzoNg Date: Fri, 11 Oct 2024 17:13:28 +0800 Subject: [PATCH] hide search in other pages --- .../header/account-setting/index.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/web/app/components/header/account-setting/index.tsx b/web/app/components/header/account-setting/index.tsx index 33b4a0f68a..652ba38322 100644 --- a/web/app/components/header/account-setting/index.tsx +++ b/web/app/components/header/account-setting/index.tsx @@ -204,15 +204,17 @@ export default function AccountSetting({
{activeItem?.description}
) } -
- setSearchValue(e.target.value)} - value={searchValue} - /> -
+ {activeItem?.key === 'provider' && ( +
+ setSearchValue(e.target.value)} + value={searchValue} + /> +
+ )}
{activeMenu === 'account' && }