feat: update ui icon
This commit is contained in:
@@ -32,17 +32,18 @@ import {
|
|||||||
EmailIcon,
|
EmailIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
DownloadIcon,
|
DownloadIcon,
|
||||||
|
CloudInsyncIcon,
|
||||||
} from '@blocksuite/icons';
|
} from '@blocksuite/icons';
|
||||||
import { useCallback, useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Button, IconButton } from '@/ui/button';
|
import { Button, IconButton } from '@/ui/button';
|
||||||
import Input from '@/ui/input';
|
import Input from '@/ui/input';
|
||||||
import { InviteMembers } from '../invite-members/index';
|
import { InviteMembers } from '../invite-members/index';
|
||||||
import { Member, getDataCenter } from '@affine/datacenter';
|
// import { Member, getDataCenter } from '@affine/datacenter';
|
||||||
import { Avatar } from '@mui/material';
|
// import { Avatar } from '@mui/material';
|
||||||
import { Menu, MenuItem } from '@/ui/menu';
|
import { Menu, MenuItem } from '@/ui/menu';
|
||||||
import { toast } from '@/ui/toast';
|
import { toast } from '@/ui/toast';
|
||||||
import { Empty } from '@/ui/empty';
|
import { Empty } from '@/ui/empty';
|
||||||
import { useAppState } from '@/providers/app-state-provider';
|
// import { useAppState } from '@/providers/app-state-provider';
|
||||||
import { GeneralPage } from './general';
|
import { GeneralPage } from './general';
|
||||||
import {
|
import {
|
||||||
deleteMember,
|
deleteMember,
|
||||||
@@ -95,7 +96,7 @@ const WorkspaceSettingTab = ({ activeTab, onTabChange }: SettingTabProps) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<StyledSettingTagIconContainer>
|
<StyledSettingTagIconContainer>
|
||||||
<EditIcon />
|
<CloudInsyncIcon />
|
||||||
</StyledSettingTagIconContainer>
|
</StyledSettingTagIconContainer>
|
||||||
Sync
|
Sync
|
||||||
</WorkspaceSettingTagItem>
|
</WorkspaceSettingTagItem>
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export function updateWorkspaceMeta(
|
|||||||
workspaceData.avatar && (activeWorkspace.avatar = workspaceData.avatar);
|
workspaceData.avatar && (activeWorkspace.avatar = workspaceData.avatar);
|
||||||
|
|
||||||
workspaceData.type && (activeWorkspace.type = workspaceData.type);
|
workspaceData.type && (activeWorkspace.type = workspaceData.type);
|
||||||
|
console.log(workspaceData);
|
||||||
setActiveWorkspace(activeWorkspace);
|
setActiveWorkspace(activeWorkspace);
|
||||||
}
|
}
|
||||||
export function createWorkspace(workspaceName: string) {
|
export function createWorkspace(workspaceName: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user