From 67ef5099dd28459334cdfa7f7eb4a80b565e8dee Mon Sep 17 00:00:00 2001 From: tzhangchi Date: Fri, 6 Jan 2023 01:20:51 +0800 Subject: [PATCH] feat: ui --- .../app/src/components/workspace-modal/index.tsx | 14 ++++++++------ packages/app/src/hooks/mock-data/mock.ts | 9 +++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/app/src/components/workspace-modal/index.tsx b/packages/app/src/components/workspace-modal/index.tsx index caaec6d329..e2a3b55f4b 100644 --- a/packages/app/src/components/workspace-modal/index.tsx +++ b/packages/app/src/components/workspace-modal/index.tsx @@ -109,7 +109,7 @@ export const WorkspaceModal = ({ open, onClose }: LoginModalProps) => { top: '20px', }} > - {item.name || 'untitled'} + {item.name || 'AFFiNE'} { top: '20px', }} > - {(item.workspaceType === 'local' || - !item.workspaceType) && ( + {(item.type === 'local' || !item.type) && ( )} - {item.workspaceType === 'cloud' && ( + {item.type === 'cloud' && ( )} {item.isPublish && } @@ -133,6 +132,9 @@ export const WorkspaceModal = ({ open, onClose }: LoginModalProps) => { })}