fix billingCheckoutSession query param + enable redirect on workspace… (#11509)
… during onboarding fixes : https://github.com/twentyhq/core-team-issues/issues/668
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
import { urlSyncEffect } from 'recoil-sync';
|
||||
import { createState } from 'twenty-ui/utilities';
|
||||
|
||||
export const animateModalState = createState<boolean>({
|
||||
key: 'animateModalState',
|
||||
defaultValue: true,
|
||||
effects: [
|
||||
urlSyncEffect({
|
||||
itemKey: 'animateModal',
|
||||
refine: (value: unknown) => {
|
||||
if (typeof value === 'boolean') {
|
||||
return {
|
||||
type: 'success',
|
||||
value: value as boolean,
|
||||
warnings: [],
|
||||
} as const;
|
||||
}
|
||||
return {
|
||||
type: 'failure',
|
||||
message: 'Invalid animateModalState',
|
||||
path: [] as any,
|
||||
} as const;
|
||||
},
|
||||
}),
|
||||
],
|
||||
});
|
||||
@ -8,6 +8,7 @@ export const billingCheckoutSessionState = createState<BillingCheckoutSession>({
|
||||
defaultValue: BILLING_CHECKOUT_SESSION_DEFAULT_VALUE,
|
||||
effects: [
|
||||
syncEffect({
|
||||
itemKey: 'billingCheckoutSession',
|
||||
refine: (value: unknown) => {
|
||||
if (
|
||||
typeof value === 'object' &&
|
||||
|
||||
Reference in New Issue
Block a user