feat:member list init

This commit is contained in:
DiamondThree 2023-01-11 14:57:36 +08:00
parent b837126cea
commit e3dc089d51
2 changed files with 3 additions and 2 deletions

View File

@ -28,13 +28,13 @@ import { WorkspaceUnit } from '@affine/datacenter';
import { useTemporaryHelper } from '@/providers/temporary-helper-provider';
import { StyledMemberWarp } from './general/style';
import { useConfirm } from '@/providers/ConfirmProvider';
import { useAppState } from '@/providers/app-state-provider';
// import { useAppState } from '@/providers/app-state-provider';
// import { useAppState } from '@/providers/app-state-provider';
export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
const [isInviteModalShow, setIsInviteModalShow] = useState(false);
const { currentMetaWorkSpace, currentWorkspace, dataCenter } = useAppState();
// const { currentMetaWorkSpace, currentWorkspace, dataCenter } = useAppState();
const [members, setMembers] = useState<[{ name: string; email: string }?]>(
[]

View File

@ -68,5 +68,6 @@ export const useWorkspaceHelper = () => {
publishWorkspace,
updateWorkspace,
enableWorkspace,
inviteMember,
};
};