diff --git a/pages/settings/profile.tsx b/pages/settings/profile.tsx index 54e0f3c4..cf0cb8f7 100644 --- a/pages/settings/profile.tsx +++ b/pages/settings/profile.tsx @@ -128,6 +128,7 @@ function SettingsView(props: ComponentProps & { localeProp: str ]; const usernameRef = useRef(null!); const nameRef = useRef(null!); + const emailRef = useRef(null!); const descriptionRef = useRef(null!); const avatarRef = useRef(null!); const brandColorRef = useRef(null!); @@ -160,6 +161,7 @@ function SettingsView(props: ComponentProps & { localeProp: str const enteredUsername = usernameRef.current.value.toLowerCase(); const enteredName = nameRef.current.value; + const enteredEmail = emailRef.current.value; const enteredDescription = descriptionRef.current.value; const enteredAvatar = avatarRef.current.value; const enteredBrandColor = brandColorRef.current.value; @@ -173,6 +175,7 @@ function SettingsView(props: ComponentProps & { localeProp: str mutation.mutate({ username: enteredUsername, name: enteredName, + email: enteredEmail, bio: enteredDescription, avatar: enteredAvatar, timeZone: enteredTimeZone, @@ -226,19 +229,16 @@ function SettingsView(props: ComponentProps & { localeProp: str {t("email")}

- {t("change_email_contact")}{" "} - - help@cal.com - + {t("change_email_tip")}

diff --git a/public/static/locales/en/common.json b/public/static/locales/en/common.json index e3426473..229f17cf 100644 --- a/public/static/locales/en/common.json +++ b/public/static/locales/en/common.json @@ -486,7 +486,7 @@ "remove_cal_branding_description": "In order to remove the Cal branding from your booking pages, you need to upgrade to a Pro account.", "to_upgrade_go_to": "To upgrade go to", "edit_profile_info_description": "Edit your profile information, which shows on your scheduling link.", - "change_email_contact": "To change your email, please contact", + "change_email_tip": "You may need to log out and back in to see the change take effect.", "little_something_about": "A little something about yourself.", "profile_updated_successfully": "Profile updated successfully", "your_user_profile_updated_successfully": "Your user profile has been updated successfully.", diff --git a/server/routers/viewer.tsx b/server/routers/viewer.tsx index c01eb20e..e6f50d2f 100644 --- a/server/routers/viewer.tsx +++ b/server/routers/viewer.tsx @@ -520,6 +520,7 @@ const loggedInViewerRouter = createProtectedRouter() input: z.object({ username: z.string().optional(), name: z.string().optional(), + email: z.string().optional(), bio: z.string().optional(), avatar: z.string().optional(), timeZone: z.string().optional(),