chore(forms): improvements to the sign-in and sign-up forms (#6813)

This commit is contained in:
Pablo Lara committed 2025-02-10 11:17:03 +01:00
1 parent 2e3164636d
commit c05bc1068a
3 files changed
+66 -9

No files matched your search

+5 -1
View File
@@ -23,6 +23,7 @@ interface CustomInputProps<T extends FieldValues> {
isRequired?: boolean;
isInvalid?: boolean;
isDisabled?: boolean;
showFormMessage?: boolean;
}
export const CustomInput = <T extends FieldValues>({
@@ -41,6 +42,7 @@ export const CustomInput = <T extends FieldValues>({
isRequired = true,
isInvalid,
isDisabled = false,
showFormMessage = true,
}: CustomInputProps<T>) => {
const [isPasswordVisible, setIsPasswordVisible] = useState(false);
const [isConfirmPasswordVisible, setIsConfirmPasswordVisible] =
@@ -112,7 +114,9 @@ export const CustomInput = <T extends FieldValues>({
{...field}
/>
</FormControl>
<FormMessage className="text-system-error dark:text-system-error" />
{showFormMessage && (
<FormMessage className="text-system-error dark:text-system-error" />
)}
</>
)}
/>