diff --git a/apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx b/apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx index 26d6234237..1dd6414859 100644 --- a/apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx +++ b/apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx @@ -10,7 +10,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { TRPCClientErrorLike } from "@calcom/trpc/client"; import { trpc } from "@calcom/trpc/react"; import type { AppRouter } from "@calcom/trpc/server/routers/_app"; -import { Button, Dialog, DialogClose, DialogContent, TextField, DialogFooter } from "@calcom/ui"; +import { Button, Dialog, DialogClose, DialogContent, TextField, DialogFooter, Tooltip } from "@calcom/ui"; import { Check, Edit2 } from "@calcom/ui/components/icon"; interface ICustomUsernameProps { @@ -135,8 +135,8 @@ const UsernameTextfield = (props: ICustomUsernameProps & Partial {currentUsername !== inputUsernameValue && ( -
- +
+ {usernameIsAvailable ? : <>}
@@ -157,21 +157,26 @@ const UsernameTextfield = (props: ICustomUsernameProps & Partial
-
+

{t("current_username")}

-

- {currentUsername} -

+ +

+ {currentUsername} +

+

{t("new_username")}

- -

- {inputUsernameValue} -

+ +

+ {inputUsernameValue} +

+
diff --git a/packages/ui/components/form/inputs/TextField.tsx b/packages/ui/components/form/inputs/TextField.tsx index ef9baf5285..724f40b693 100644 --- a/packages/ui/components/form/inputs/TextField.tsx +++ b/packages/ui/components/form/inputs/TextField.tsx @@ -48,7 +48,16 @@ const Addon = ({ isFilled, children, className, error, onClickAddon }: AddonProp "min-h-9 flex flex-col justify-center text-sm leading-7", error ? "text-error" : "text-default" )}> - {children} + + {children} +
);