UPDATE: Forgot Password in AuthModal

now uses AuthSwitch to switch between different forms by using MAP instead if if-elseif-else
This commit is contained in:
EvanLin3141
2025-02-09 16:04:48 +00:00
parent 29572f56d1
commit 8942298b38
2 changed files with 32 additions and 6 deletions

View File

@@ -6,7 +6,11 @@ interface ForgotPasswordProps {
email?: string;
}
const ForgotPasswordForm: React.FC = () => {
interface SubmitProps {
onSubmit: () => void;
}
const ForgotPasswordForm: React.FC<SubmitProps> = ( {onSubmit} ) => {
const [email, setEmail] = useState<string>("");
const [errors, setErrors] = useState<ForgotPasswordProps>({});