From 0206d9a670ad35e776bed428fa880b25fcc36ea7 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Tue, 16 Aug 2022 10:44:51 +0800 Subject: [PATCH] client: fix ui --- packages/client/src/components/document/actions/index.tsx | 2 +- packages/client/src/components/members/edit.tsx | 1 + packages/client/src/components/members/index.tsx | 1 + .../client/src/components/organization/setting/index.tsx | 6 +----- packages/client/src/components/template/editor/index.tsx | 7 ++++++- packages/client/src/components/theme/index.tsx | 2 +- packages/client/src/pages/template/index.tsx | 2 +- 7 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/client/src/components/document/actions/index.tsx b/packages/client/src/components/document/actions/index.tsx index a103fcd..264cb98 100644 --- a/packages/client/src/components/document/actions/index.tsx +++ b/packages/client/src/components/document/actions/index.tsx @@ -79,7 +79,7 @@ export const DocumentActions: React.FC = ({ visible={popoverVisible} onVisibleChange={wrapOnVisibleChange} content={ - + {showCreateDocument && ( diff --git a/packages/client/src/components/members/edit.tsx b/packages/client/src/components/members/edit.tsx index f5e6752..777b1d3 100644 --- a/packages/client/src/components/members/edit.tsx +++ b/packages/client/src/components/members/edit.tsx @@ -19,6 +19,7 @@ export const EditUser: React.FC = ({ userWithAuth, updateUser, children return ( = ({ id, hook, descriptions }) => { deleteUser({ userName: data.user.name, userAuth: data.auth.auth })} diff --git a/packages/client/src/components/organization/setting/index.tsx b/packages/client/src/components/organization/setting/index.tsx index aee04d6..0caf402 100644 --- a/packages/client/src/components/organization/setting/index.tsx +++ b/packages/client/src/components/organization/setting/index.tsx @@ -1,8 +1,6 @@ import { TabPane, Tabs } from '@douyinfe/semi-ui'; -import { IOrganization, IWiki } from '@think/domains'; +import { IOrganization } from '@think/domains'; import { Seo } from 'components/seo'; -import { WikiTocsManager } from 'components/wiki/tocs/manager'; -import { useWikiDetail } from 'data/wiki'; import React from 'react'; import { Base } from './base'; @@ -22,8 +20,6 @@ const TitleMap = { }; export const OrganizationSetting: React.FC = ({ organizationId, tab, onNavigate }) => { - // const { data, update } = useWikiDetail(wikiId); - return ( <> diff --git a/packages/client/src/components/template/editor/index.tsx b/packages/client/src/components/template/editor/index.tsx index 04285f4..c221a21 100644 --- a/packages/client/src/components/template/editor/index.tsx +++ b/packages/client/src/components/template/editor/index.tsx @@ -73,7 +73,12 @@ export const TemplateEditor: React.FC = ({ templateId }) => { updateTemplate({ isPublic: v })}> - + diff --git a/packages/client/src/components/theme/index.tsx b/packages/client/src/components/theme/index.tsx index 4936be5..35de542 100644 --- a/packages/client/src/components/theme/index.tsx +++ b/packages/client/src/components/theme/index.tsx @@ -25,7 +25,7 @@ export const Theme = () => { trigger="click" showTick render={ - + 亮色 diff --git a/packages/client/src/pages/template/index.tsx b/packages/client/src/pages/template/index.tsx index 520db14..c8d1853 100644 --- a/packages/client/src/pages/template/index.tsx +++ b/packages/client/src/pages/template/index.tsx @@ -33,7 +33,7 @@ const Page: NextPage = () => { return ( - +