From d64ae51c94a9feafe3a6bba3cb23fa6879e8324e Mon Sep 17 00:00:00 2001 From: JimmFly Date: Tue, 17 Jan 2023 17:46:34 +0800 Subject: [PATCH] chore: remove setting tabs icon --- .../pages/workspace/[workspaceId]/setting.tsx | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/packages/app/src/pages/workspace/[workspaceId]/setting.tsx b/packages/app/src/pages/workspace/[workspaceId]/setting.tsx index 2a78641d69..ce45fb0f32 100644 --- a/packages/app/src/pages/workspace/[workspaceId]/setting.tsx +++ b/packages/app/src/pages/workspace/[workspaceId]/setting.tsx @@ -4,15 +4,8 @@ import { StyledSettingSidebar, StyledSettingSidebarHeader, StyledSettingTabContainer, - StyledSettingTagIconContainer, WorkspaceSettingTagItem, } from '@/components/workspace-setting/style'; -import { - EditIcon, - UsersIcon, - PublishIcon, - CloudInsyncIcon, -} from '@blocksuite/icons'; import { ReactElement, ReactNode, useState } from 'react'; import { GeneralPage, @@ -30,32 +23,26 @@ type TabNames = 'general' | 'members' | 'publish' | 'sync' | 'export'; const tabMap: { name: TabNames; - icon: ReactNode; panelRender: (workspace: WorkspaceUnit) => ReactNode; }[] = [ { name: 'general', - icon: , panelRender: workspace => , }, { name: 'members', - icon: , panelRender: workspace => , }, { name: 'publish', - icon: , panelRender: workspace => , }, { name: 'sync', - icon: , panelRender: workspace => , }, { name: 'export', - icon: , panelRender: workspace => , }, ]; @@ -74,14 +61,12 @@ const WorkspaceSetting = () => { )?.panelRender; let tableArr: { name: TabNames; - icon: ReactNode; panelRender: (workspace: WorkspaceUnit) => ReactNode; }[] = tabMap; if (!isOwner) { tableArr = [ { name: 'general', - icon: , panelRender: workspace => , }, ]; @@ -93,7 +78,7 @@ const WorkspaceSetting = () => { {t('Workspace Settings')} - {tableArr.map(({ icon, name }) => { + {tableArr.map(({ name }) => { return ( { handleTabChange(name); }} > - - {icon} - {name} );