diff --git a/src/pages/ForgotPassword.tsx b/src/pages/ForgotPassword.tsx index 3e05b457..5f885b6d 100644 --- a/src/pages/ForgotPassword.tsx +++ b/src/pages/ForgotPassword.tsx @@ -6,7 +6,7 @@ import { AuthCard } from "@/components/auth/AuthCard"; import { Button } from "@/components/ui/button"; import { InlineNotification } from "@/components/ui/inline-notification"; import { Input } from "@/components/ui/input"; -import { Label } from "@/components/ui/label"; +import { Field } from "@/components/ui/field"; import { useRouter } from "@/router"; export function ForgotPassword() { @@ -71,33 +71,27 @@ export function ForgotPassword() { ) : (
-
- - { - setEmail(event.target.value); - setEmailError(null); - }} - aria-invalid={!!emailError} - aria-describedby={emailError ? "forgot-password-email-error" : undefined} - /> - {emailError && ( - + + {(controlProps) => ( + { + setEmail(event.target.value); + setEmailError(null); + }} + /> )} -
+ {error && }