From cd2382e091db2de1d7614adadf0ff9a502f49f2a Mon Sep 17 00:00:00 2001 From: Vadim Rusin Date: Thu, 17 Oct 2024 06:44:52 +0200 Subject: [PATCH] fix: Add error message for taken username (#17129) --- .../components/ui/UsernameAvailability/PremiumTextfield.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx b/apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx index 351f09242b..60d83caf64 100644 --- a/apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx +++ b/apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx @@ -212,7 +212,7 @@ const PremiumTextfield = (props: ICustomUsernameProps) => { autoCorrect="none" disabled={disabled} className={classNames( - "border-l-1 mb-0 mt-0 rounded-md rounded-l-none font-sans text-sm leading-4 focus:!ring-0", + "border-l-1 my-0 rounded-md rounded-l-none font-sans text-sm leading-4 focus:!ring-0", isInputUsernamePremium ? "border border-orange-400 focus:border focus:border-orange-400" : "border focus:border", @@ -262,7 +262,7 @@ const PremiumTextfield = (props: ICustomUsernameProps) => { )} {paymentMsg} - {markAsError &&

Username is already taken

} + {markAsError &&

{t("username_already_taken")}

}