mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(core): remove joined workspace icon from current worksapce card (#8117)
close PD-1669
This commit is contained in:
@@ -107,6 +107,7 @@ export const WorkspaceSelector = ({
|
||||
className={className}
|
||||
showArrowDownIcon={showArrowDownIcon}
|
||||
disable={disable}
|
||||
hideCollaborationIcon={true}
|
||||
data-testid="current-workspace-card"
|
||||
/>
|
||||
) : (
|
||||
|
||||
@@ -241,6 +241,7 @@ export const WorkspaceCard = forwardRef<
|
||||
showArrowDownIcon?: boolean;
|
||||
avatarSize?: number;
|
||||
disable?: boolean;
|
||||
hideCollaborationIcon?: boolean;
|
||||
onClickOpenSettings?: (workspaceMetadata: WorkspaceMetadata) => void;
|
||||
onClickEnableCloud?: (workspaceMetadata: WorkspaceMetadata) => void;
|
||||
}
|
||||
@@ -255,6 +256,7 @@ export const WorkspaceCard = forwardRef<
|
||||
onClickEnableCloud,
|
||||
className,
|
||||
disable,
|
||||
hideCollaborationIcon,
|
||||
...props
|
||||
},
|
||||
ref
|
||||
@@ -314,7 +316,9 @@ export const WorkspaceCard = forwardRef<
|
||||
Enable Cloud
|
||||
</Button>
|
||||
) : null}
|
||||
{information?.isOwner ? null : <CollaborationIcon />}
|
||||
{hideCollaborationIcon || information?.isOwner ? null : (
|
||||
<CollaborationIcon />
|
||||
)}
|
||||
{onClickOpenSettings && (
|
||||
<div
|
||||
className={styles.settingButton}
|
||||
|
||||
Reference in New Issue
Block a user