feat: add workspace to setting

This commit is contained in:
MingLiang Wang
2022-12-20 19:37:52 +08:00
parent 2ede288724
commit 50e4da10d1
2 changed files with 18 additions and 4 deletions
@@ -12,6 +12,7 @@ import {
} from './WorkspaceItem';
import { WorkspaceSetting } from '@/components/workspace-setting';
import { useState } from 'react';
import { WorkspaceType } from '@pathfinder/data-services';
export const SelectorPopperContent = () => {
const { user, workspacesMeta } = useAppState();
@@ -56,6 +57,13 @@ export const SelectorPopperContent = () => {
<WorkspaceSetting
isShow={Boolean(settingWorkspaceId)}
onClose={handleCloseWorkSpace}
workspace={
settingWorkspaceId
? workspacesMeta.find(
workspace => workspace.id === settingWorkspaceId
)
: undefined
}
/>
<StyledDivider />
<ListItem