mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
feat: add workspace to setting
This commit is contained in:
+8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user