chore: add confirmPassword input in sign-up page

This commit is contained in:
Pablo Lara
2024-10-01 14:15:05 +02:00
parent ceebfc9aca
commit 650b95c4f1
2 changed files with 44 additions and 32 deletions
+6 -24
View File
@@ -97,7 +97,6 @@ export const AuthForm = ({ type }: { type: string }) => {
<Form {...form}>
<form
className="flex flex-col gap-3"
// Fix TS types.
onSubmit={form.handleSubmit(onSubmit)}
>
{type === "sign-up" && (
@@ -115,6 +114,7 @@ export const AuthForm = ({ type }: { type: string }) => {
type="text"
label="Company Name"
placeholder="Enter your company name"
isRequired={false}
/>
</>
)}
@@ -138,35 +138,17 @@ export const AuthForm = ({ type }: { type: string }) => {
</Link>
</div>
)}
{/* <Input
isRequired
endContent={
<button type="button" onClick={toggleConfirmVisibility}>
{isConfirmVisible ? (
<Icon
className="pointer-events-none text-2xl text-default-400"
icon="solar:eye-closed-linear"
/>
) : (
<Icon
className="pointer-events-none text-2xl text-default-400"
icon="solar:eye-bold"
/>
)}
</button>
}
label="Confirm Password"
name="confirmPassword"
placeholder="Confirm your password"
type={isConfirmVisible ? "text" : "password"}
variant="bordered"
/> */}
{type === "sign-up" && (
<FormField
control={form.control}
name="termsAndConditions"
render={({ field }) => (
<>
<CustomInput
control={form.control}
name="confirmPassword"
confirmPassword
/>
<FormControl>
<Checkbox
isRequired