Added email autocomplete on navigate

This commit is contained in:
Daniel Cojocea committed 2024-08-12 14:06:01 -04:00
1 parent 12992c8ae1
commit 7258a59e56
2 files changed
+14 -2

No files matched your search

+8 -1
View File
@@ -154,6 +154,13 @@ const StepTwo = ({ form, errors, onSubmit, onChange, onBack }) => {
}
}, []);
const handleNavigate = () => {
if (form.email !== "" && !errors.email) {
sessionStorage.setItem("email", form.email);
}
navigate("/forgot-password");
};
return (
<>
<Stack gap={theme.gap.large} textAlign="center">
@@ -209,7 +216,7 @@ const StepTwo = ({ form, errors, onSubmit, onChange, onBack }) => {
component="span"
ml={theme.gap.xs}
sx={{ userSelect: "none" }}
onClick={() => navigate("/forgot-password")}
onClick={handleNavigate}
>
Reset password
</Typography>