From da6d65b072b29a2ce4aefdb39aa24c097970fbff Mon Sep 17 00:00:00 2001 From: JzoNg Date: Wed, 25 Dec 2024 12:35:27 +0800 Subject: [PATCH] fix style of account setting --- .../header/account-dropdown/index.tsx | 5 --- .../header/account-setting/index.tsx | 39 +++++++++---------- 2 files changed, 18 insertions(+), 26 deletions(-) diff --git a/web/app/components/header/account-dropdown/index.tsx b/web/app/components/header/account-dropdown/index.tsx index 79983892ba..44ec00ee19 100644 --- a/web/app/components/header/account-dropdown/index.tsx +++ b/web/app/components/header/account-dropdown/index.tsx @@ -19,7 +19,6 @@ import { useModalContext } from '@/context/modal-context' import { LanguagesSupported } from '@/i18n/language' import { useProviderContext } from '@/context/provider-context' import { Plan } from '@/app/components/billing/type' -import WorkplaceSelector from './workplace-selector' export type IAppSelector = { isMobile: boolean @@ -101,10 +100,6 @@ export default function AppSelector({ isMobile }: IAppSelector) { -
-
{t('common.userProfile.workspace')}
- -
-
-
-
{t('common.userProfile.settings')}
+
+
+
{t('common.userProfile.settings')}
{ menuItems.map(menuItem => (
{!isCurrentWorkspaceDatasetOperator && ( -
{menuItem.name}
+
{menuItem.name}
)}
{ menuItem.items.map(item => (
setActiveMenu(item.key)} > @@ -181,19 +180,17 @@ export default function AccountSetting({ }
-
-
-
{activeItem?.name}
- { - activeItem?.description && ( -
{activeItem?.description}
- ) - } -
-
- -
-
+
+
+ +
ESC