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:
nitin
2025-06-23 15:25:35 +05:30
committed by GitHub
parent b76dac2ca1
commit bec4a98ae7
4 changed files with 22 additions and 2 deletions

View File

@ -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>({

View File

@ -24,6 +24,8 @@ const mockCurrentUser = {
canImpersonate: false,
onboardingStatus: OnboardingStatus.COMPLETED,
userVars: {},
firstName: 'fake-first-name',
lastName: 'fake-last-name',
};
const mockBilling: Billing = {