From 4645bbcb75204a050f11c53c835f18b305c6f364 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Sat, 17 Sep 2022 03:40:27 +0100 Subject: [PATCH] Use refs for inputs, full_name label, un-hardcoded WEBSITE_URL (#4542) --- .../pages/v2/settings/my-account/profile.tsx | 86 ++++--------------- 1 file changed, 19 insertions(+), 67 deletions(-) diff --git a/apps/web/pages/v2/settings/my-account/profile.tsx b/apps/web/pages/v2/settings/my-account/profile.tsx index 0745b3e7e4..f3a1fb8a8b 100644 --- a/apps/web/pages/v2/settings/my-account/profile.tsx +++ b/apps/web/pages/v2/settings/my-account/profile.tsx @@ -4,6 +4,7 @@ import { useRef, useState, BaseSyntheticEvent } from "react"; import { Controller, useForm } from "react-hook-form"; import { ErrorCode } from "@calcom/lib/auth"; +import { WEBSITE_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { TRPCClientErrorLike } from "@calcom/trpc/client"; import { trpc } from "@calcom/trpc/react"; @@ -159,73 +160,24 @@ const ProfileView = () => { )} /> - ( -
- { - formMethods.setValue("username", e?.target.value); - }} - /> -
- )} - /> - ( -
- { - onChange(e?.target.value); - }} - /> -
- )} - /> - ( -
- { - formMethods.setValue("email", e?.target.value); - }} - /> -
- )} - /> - ( -
- { - formMethods.setValue("bio", e?.target.value); - }} - /> -
- )} - /> +
+ +
+
+ +
+
+ +
+
+ +
+