integrate into ForgotPassword page
This commit is contained in:
1 parent
74e9f19bd7
commit
bdfe91c661
2 files changed
+4
-4
No files matched your search
@@ -1,7 +1,6 @@
|
|||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { Box, Stack, Typography } from "@mui/material";
|
import { Box, Stack, Typography } from "@mui/material";
|
||||||
import TextInput from "../../Components/Inputs/TextInput";
|
import TextInput from "../../Components/Inputs/TextInput";
|
||||||
import Field from "../../Components/Inputs/Field";
|
|
||||||
import Link from "../../Components/Link";
|
import Link from "../../Components/Link";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { useEffect, useState } from "react";
|
|||||||
import { credentials } from "../../Validation/validation";
|
import { credentials } from "../../Validation/validation";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { IconBox } from "./styled";
|
import { IconBox } from "./styled";
|
||||||
import Field from "../../Components/Inputs/Field";
|
import TextInput from "../../Components/Inputs/TextInput";
|
||||||
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
import Key from "../../assets/icons/key.svg?react";
|
import Key from "../../assets/icons/key.svg?react";
|
||||||
import Background from "../../assets/Images/background-grid.svg?react";
|
import Background from "../../assets/Images/background-grid.svg?react";
|
||||||
@@ -160,7 +160,7 @@ const ForgotPassword = () => {
|
|||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
<Field
|
<TextInput
|
||||||
type="email"
|
type="email"
|
||||||
id="forgot-password-email-input"
|
id="forgot-password-email-input"
|
||||||
label="Email"
|
label="Email"
|
||||||
@@ -168,7 +168,8 @@ const ForgotPassword = () => {
|
|||||||
placeholder="Enter your email"
|
placeholder="Enter your email"
|
||||||
value={form.email}
|
value={form.email}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.email}
|
error={errors.email ? true : false}
|
||||||
|
helperText={errors.email}
|
||||||
/>
|
/>
|
||||||
<LoadingButton
|
<LoadingButton
|
||||||
variant="contained"
|
variant="contained"
|
||||||
|
|||||||
Reference in new issue
Block a user