chore: add visibility toggle to reset password

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

View File

@@ -144,7 +144,7 @@ export const SignInForm = ({ className }: SignInFormProps) => {
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" />