add firstname and lastname on current user state and sync it while cr… (#12781)
…eating profile and pass it to cal.com's embed
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { User } from '~/generated/graphql';
|
||||
import { createState } from 'twenty-ui/utilities';
|
||||
import { User } from '~/generated/graphql';
|
||||
|
||||
export type CurrentUser = Pick<
|
||||
User,
|
||||
@ -10,6 +10,8 @@ export type CurrentUser = Pick<
|
||||
| 'canImpersonate'
|
||||
| 'onboardingStatus'
|
||||
| 'userVars'
|
||||
| 'firstName'
|
||||
| 'lastName'
|
||||
>;
|
||||
|
||||
export const currentUserState = createState<CurrentUser | null>({
|
||||
|
||||
@ -24,6 +24,8 @@ const mockCurrentUser = {
|
||||
canImpersonate: false,
|
||||
onboardingStatus: OnboardingStatus.COMPLETED,
|
||||
userVars: {},
|
||||
firstName: 'fake-first-name',
|
||||
lastName: 'fake-last-name',
|
||||
};
|
||||
|
||||
const mockBilling: Billing = {
|
||||
|
||||
Reference in New Issue
Block a user