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>({
|
||||
|
||||
Reference in New Issue
Block a user