diff --git a/apps/web/src/components/auth-form.tsx b/apps/web/src/components/auth-form.tsx index 0f08635..0966360 100644 --- a/apps/web/src/components/auth-form.tsx +++ b/apps/web/src/components/auth-form.tsx @@ -1,4 +1,5 @@ import { FormEvent, useState } from 'react'; +import { Eye, EyeOff } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; @@ -17,6 +18,7 @@ export function AuthForm({ mode, isSubmitting, error, googleOAuthEnabled, onSubm const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); + const [showPassword, setShowPassword] = useState(false); async function handleSubmit(event: FormEvent) { event.preventDefault(); @@ -53,10 +55,19 @@ export function AuthForm({ mode, isSubmitting, error, googleOAuthEnabled, onSubm
- { - setPassword(event.target.value); - onFieldChange?.(); - }} required /> +
+ { + setPassword(event.target.value); + onFieldChange?.(); + }} required /> + +
{error &&

{error}

}