mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
chore: bump version (#1313)
This commit is contained in:
@@ -125,7 +125,7 @@ export const GeneralPanel: React.FC<PanelProps> = ({
|
||||
shape="circle"
|
||||
style={{ marginLeft: '24px' }}
|
||||
onClick={() => {
|
||||
setInput(workspace.blockSuiteWorkspace.meta.name);
|
||||
setInput(workspace.blockSuiteWorkspace.meta.name ?? '');
|
||||
setShowEditInput(false);
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -67,8 +67,8 @@ export const Footer: React.FC<FooterProps> = ({ user, onLogin, onLogout }) => {
|
||||
|
||||
interface WorkspaceAvatarProps {
|
||||
size: number;
|
||||
name: string;
|
||||
avatar: string;
|
||||
name: string | undefined;
|
||||
avatar: string | undefined;
|
||||
style?: CSSProperties;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { UNTITLED_WORKSPACE_NAME } from '@affine/env';
|
||||
import React from 'react';
|
||||
|
||||
import { useBlockSuiteWorkspaceAvatar } from '../../../hooks/use-blocksuite-workspace-avatar';
|
||||
import { useWorkspaceBlobImage } from '../../../hooks/use-workspace-blob';
|
||||
import { BlockSuiteWorkspace, RemWorkspace } from '../../../shared';
|
||||
import { stringToColour } from '../../../utils';
|
||||
@@ -86,12 +88,13 @@ export const BlockSuiteWorkspaceAvatar: React.FC<BlockSuiteWorkspaceAvatar> = ({
|
||||
style,
|
||||
...props
|
||||
}) => {
|
||||
const avatarURL = useWorkspaceBlobImage(workspace.meta.avatar, workspace);
|
||||
const [avatar] = useBlockSuiteWorkspaceAvatar(workspace);
|
||||
const avatarURL = useWorkspaceBlobImage(avatar ?? null, workspace);
|
||||
return (
|
||||
<Avatar
|
||||
{...props}
|
||||
size={size}
|
||||
name={workspace.meta.name}
|
||||
name={workspace.meta.name ?? UNTITLED_WORKSPACE_NAME}
|
||||
avatar_url={avatarURL ?? ''}
|
||||
style={style}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user