* feat: redirect to Plan Required page if subscription status is not active Closes #2934 * feat: navigate to Plan Required in PageChangeEffect * feat: add Twenty logo to Plan Required modal * test: add Storybook story * Fix lint --------- Co-authored-by: Charles Bochet <charles@twenty.com>
20 lines
382 B
TypeScript
20 lines
382 B
TypeScript
import { atom } from 'recoil';
|
|
|
|
import { Workspace } from '~/generated/graphql';
|
|
|
|
export type CurrentWorkspace = Pick<
|
|
Workspace,
|
|
| 'id'
|
|
| 'inviteHash'
|
|
| 'logo'
|
|
| 'displayName'
|
|
| 'allowImpersonation'
|
|
| 'featureFlags'
|
|
| 'subscriptionStatus'
|
|
>;
|
|
|
|
export const currentWorkspaceState = atom<CurrentWorkspace | null>({
|
|
key: 'currentWorkspaceState',
|
|
default: null,
|
|
});
|