refactor: move createState to twenty-ui (#4716)
Split from https://github.com/twentyhq/twenty/pull/4518 Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { createState } from '@/ui/utilities/state/utils/createState';
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
import { AuthProviders } from '~/generated/graphql';
|
||||
|
||||
export const authProvidersState = createState<AuthProviders>({
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { createState } from '@/ui/utilities/state/utils/createState';
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
import { Billing } from '~/generated/graphql';
|
||||
|
||||
export const billingState = createState<Billing | null>({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { createState } from '@/ui/utilities/state/utils/createState';
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
export const isDebugModeState = createState<boolean>({
|
||||
key: 'isDebugModeState',
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { createState } from '@/ui/utilities/state/utils/createState';
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
export const isSignInPrefilledState = createState<boolean>({
|
||||
key: 'isSignInPrefilledState',
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { createState } from '@/ui/utilities/state/utils/createState';
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
export const isSignUpDisabledState = createState<boolean>({
|
||||
key: 'isSignUpDisabledState',
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { createState } from '@/ui/utilities/state/utils/createState';
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
import { Sentry } from '~/generated/graphql';
|
||||
|
||||
export const sentryConfigState = createState<Sentry | null>({
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { createState } from '@/ui/utilities/state/utils/createState';
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
import { Support } from '~/generated/graphql';
|
||||
|
||||
export const supportChatState = createState<Support>({
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { createState } from '@/ui/utilities/state/utils/createState';
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
import { Telemetry } from '~/generated/graphql';
|
||||
|
||||
export const telemetryState = createState<Telemetry>({
|
||||
|
||||
Reference in New Issue
Block a user