a6abe09163
* Fix impersonate * align core typeorm config with metadata config + add allowImpersonation to workspace * move allowImpersonation to workspace * remove allowImpersonation from workspaceMember workspace table
14 lines
328 B
TypeScript
14 lines
328 B
TypeScript
import { atom } from 'recoil';
|
|
|
|
import { Workspace } from '~/generated/graphql';
|
|
|
|
export type CurrentWorkspace = Pick<
|
|
Workspace,
|
|
'id' | 'inviteHash' | 'logo' | 'displayName' | 'allowImpersonation'
|
|
>;
|
|
|
|
export const currentWorkspaceState = atom<CurrentWorkspace | null>({
|
|
key: 'currentWorkspaceState',
|
|
default: null,
|
|
});
|