Integrate into SetNewPassword
This commit is contained in:
1 parent
bdfe91c661
commit
3ff941259e
2 files changed
+11
-5
No files matched your search
@@ -9,7 +9,6 @@ import { createToast } from "../../Utils/toastUtils";
|
|||||||
import { networkService } from "../../main";
|
import { networkService } from "../../main";
|
||||||
import TextInput from "../../Components/Inputs/TextInput";
|
import TextInput from "../../Components/Inputs/TextInput";
|
||||||
import { PasswordEndAdornment } from "../../Components/Inputs/TextInput/Adornments";
|
import { PasswordEndAdornment } from "../../Components/Inputs/TextInput/Adornments";
|
||||||
import Field from "../../Components/Inputs/Field";
|
|
||||||
import Background from "../../assets/Images/background-grid.svg?react";
|
import Background from "../../assets/Images/background-grid.svg?react";
|
||||||
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
import Mail from "../../assets/icons/mail.svg?react";
|
import Mail from "../../assets/icons/mail.svg?react";
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ import { createToast } from "../../Utils/toastUtils";
|
|||||||
import { credentials } from "../../Validation/validation";
|
import { credentials } from "../../Validation/validation";
|
||||||
import Check from "../../Components/Check/Check";
|
import Check from "../../Components/Check/Check";
|
||||||
import Field from "../../Components/Inputs/Field";
|
import Field from "../../Components/Inputs/Field";
|
||||||
|
import TextInput from "../../Components/Inputs/TextInput";
|
||||||
|
import { PasswordEndAdornment } from "../../Components/Inputs/TextInput/Adornments";
|
||||||
|
|
||||||
import { IconBox } from "./styled";
|
import { IconBox } from "./styled";
|
||||||
import LockIcon from "../../assets/icons/lock.svg?react";
|
import LockIcon from "../../assets/icons/lock.svg?react";
|
||||||
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
@@ -147,7 +150,7 @@ const SetNewPassword = () => {
|
|||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
<Field
|
<TextInput
|
||||||
id={passwordId}
|
id={passwordId}
|
||||||
type="password"
|
type="password"
|
||||||
name="password"
|
name="password"
|
||||||
@@ -156,7 +159,9 @@ const SetNewPassword = () => {
|
|||||||
placeholder="••••••••"
|
placeholder="••••••••"
|
||||||
value={form.password}
|
value={form.password}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.password}
|
error={errors.password ? true : false}
|
||||||
|
helperText={errors.password}
|
||||||
|
endAdornment={<PasswordEndAdornment />}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box
|
<Box
|
||||||
@@ -165,7 +170,7 @@ const SetNewPassword = () => {
|
|||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
<Field
|
<TextInput
|
||||||
id={confirmPasswordId}
|
id={confirmPasswordId}
|
||||||
type="password"
|
type="password"
|
||||||
name="confirm"
|
name="confirm"
|
||||||
@@ -174,7 +179,9 @@ const SetNewPassword = () => {
|
|||||||
placeholder="••••••••"
|
placeholder="••••••••"
|
||||||
value={form.confirm}
|
value={form.confirm}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.confirm}
|
error={errors.confirm ? true : false}
|
||||||
|
helperText={errors.confirm}
|
||||||
|
endAdornment={<PasswordEndAdornment />}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack
|
<Stack
|
||||||
|
|||||||
Reference in new issue
Block a user