mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix: workspace avatar url won't update (#1817)
This commit is contained in:
@@ -5,6 +5,7 @@ import type React from 'react';
|
||||
|
||||
import { useCurrentWorkspace } from '../../../../hooks/current/use-current-workspace';
|
||||
import type { AllWorkspace } from '../../../../shared';
|
||||
import { workspaceAvatarStyle } from './index.css';
|
||||
import {
|
||||
StyledSelectorContainer,
|
||||
StyledSelectorWrapper,
|
||||
@@ -29,9 +30,7 @@ export const WorkspaceSelector: React.FC<WorkspaceSelectorProps> = ({
|
||||
<StyledSelectorContainer onClick={onClick} data-testid="current-workspace">
|
||||
<WorkspaceAvatar
|
||||
data-testid="workspace-avatar"
|
||||
style={{
|
||||
flexShrink: 0,
|
||||
}}
|
||||
className={workspaceAvatarStyle}
|
||||
size={40}
|
||||
workspace={currentWorkspace}
|
||||
/>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import { style } from '@vanilla-extract/css';
|
||||
export const workspaceAvatarStyle = style({
|
||||
flexShrink: 0,
|
||||
});
|
||||
Reference in New Issue
Block a user