- Replace `window.location.replace` by `useRedirect` hook. - Remove unused code: `switchWorkspace, addUserByInviteHash...` - Refacto `Invite` component. - Fix signin on invite modal.
14 lines
323 B
TypeScript
14 lines
323 B
TypeScript
import { createState } from '@ui/utilities/state/utils/createState';
|
|
|
|
import { Workspace } from '~/generated/graphql';
|
|
|
|
export type Workspaces = Pick<
|
|
Workspace,
|
|
'id' | 'logo' | 'displayName' | 'subdomain'
|
|
>[];
|
|
|
|
export const workspacesState = createState<Workspaces>({
|
|
key: 'workspacesState',
|
|
defaultValue: [],
|
|
});
|