feat: workspace setting
This commit is contained in:
1 parent
93866e56d2
commit
10072148d1
11 files changed
+77
-61
No files matched your search
@@ -15,8 +15,9 @@ import { useRouter } from 'next/router';
|
||||
import {
|
||||
deleteWorkspace,
|
||||
getWorkspaces,
|
||||
Workspace,
|
||||
// Workspace,
|
||||
} from '@/hooks/mock-data/mock';
|
||||
import { Workspace } from '@affine/datacenter';
|
||||
|
||||
interface WorkspaceDeleteProps {
|
||||
open: boolean;
|
||||
@@ -55,7 +56,7 @@ export const WorkspaceDelete = ({
|
||||
<StyledModalWrapper>
|
||||
<ModalCloseButton onClick={onClose} />
|
||||
<StyledModalHeader>Delete Workspace</StyledModalHeader>
|
||||
{workspace.type === 'local' ? (
|
||||
{workspace.provider === 'local' ? (
|
||||
<StyledTextContent>
|
||||
Deleting (
|
||||
<StyledWorkspaceName>{workspace.name}</StyledWorkspaceName>) cannot
|
||||
|
||||
Reference in new issue
Block a user