refactor: workspace header (#1880)

This commit is contained in:
Himself65
2023-04-11 21:39:39 -05:00
committed by GitHub
parent 2e823c2fee
commit a06113d48c
42 changed files with 1653 additions and 470 deletions

View File

@@ -1,4 +1,8 @@
import type { AffineWorkspace, LocalWorkspace } from '@affine/workspace/type';
import type {
AffinePublicWorkspace,
AffineWorkspace,
LocalWorkspace,
} from '@affine/workspace/type';
import type { Workspace } from '@blocksuite/store';
import * as RadixAvatar from '@radix-ui/react-avatar';
import { useBlockSuiteWorkspaceAvatarUrl } from '@toeverything/hooks/use-blocksuite-workspace-avatar-url';
@@ -31,7 +35,7 @@ function stringToColour(str: string) {
export type WorkspaceAvatarProps = {
size?: number;
workspace: LocalWorkspace | AffineWorkspace | null;
workspace: AffineWorkspace | LocalWorkspace | AffinePublicWorkspace | null;
className?: string;
};