chore: add visibility toggle to reset password

This commit is contained in:
Mythie
2023-09-20 02:32:06 +00:00
parent ecc8e59c8c
commit 71c7a6ee8c
4 changed files with 61 additions and 22 deletions

View File

@ -125,7 +125,7 @@ export const SignUpForm = ({ className }: SignUpFormProps) => {
type="button"
className="absolute right-0 top-0 flex h-full items-center justify-center pr-3"
aria-label={showPassword ? 'Mask password' : 'Reveal password'}
onClick={() => setShowPassword((showPassword) => !showPassword)}
onClick={() => setShowPassword((show) => !show)}
>
{showPassword ? (
<EyeOff className="text-muted-foreground h-5 w-5" />