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:
@@ -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>({});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user