fix: workspace name should change in the setting panel (#3039)

This commit is contained in:
Alex Yang
2023-07-06 10:19:06 +08:00
committed by GitHub
parent 87ba71e77e
commit e95d28e136
3 changed files with 38 additions and 2 deletions
@@ -128,7 +128,11 @@ const WorkspaceListItem = ({
>
<WorkspaceAvatar size={14} workspace={workspace} className="icon" />
<span className="setting-name">{workspaceName}</span>
{isCurrent ? <div className="current-label">Current</div> : null}
{isCurrent ? (
<div className="current-label" data-testid="current-workspace-label">
Current
</div>
) : null}
</div>
);
};