-
diff --git a/FrontEnd/src/components/RestorePassword/components/restorepassword/restorepassword-form/EmailFormContent.module.css b/FrontEnd/src/components/RestorePassword/components/restorepassword/restorepassword-form/EmailFormContent.module.css
index 805581efc..e09908fa3 100644
--- a/FrontEnd/src/components/RestorePassword/components/restorepassword/restorepassword-form/EmailFormContent.module.css
+++ b/FrontEnd/src/components/RestorePassword/components/restorepassword/restorepassword-form/EmailFormContent.module.css
@@ -6,29 +6,28 @@
gap: 10px;
align-self: stretch;
}
-
+
.send-email-form__container {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
-
+
.send-email-form__row {
display: flex;
align-items: flex-start;
gap: 8px;
}
-
+
.send-email-form__column {
display: flex;
- width: 257px;
height: 84px;
padding-bottom: 0px;
flex-direction: column;
align-items: flex-start;
}
-
+
.send-email-form__label {
display: flex;
gap: 4px;
@@ -37,33 +36,22 @@
color: var(--main-black-90, #292e32);
font-feature-settings: "calt" off;
- /* Text/Body/14-Regular */
font-family: Inter, sans-serif;
font-size: 14px;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
letter-spacing: -0.14px;
text-align: left;
}
-
-.send-email-form__label--required {
- color: var(--dust-red-5, #ff4d4f);
- text-align: right;
- font-family: SimSong;
- font-size: 14px;
- font-style: normal;
- font-weight: 400;
- line-height: 22.001px;
-}
-
+
.send-email-form__label--text {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1 0 0;
}
-
+
.send-email-form__field {
display: flex;
width: 520px;
@@ -72,7 +60,7 @@
border-radius: 2px;
background: var(--main-white, #fff);
}
-
+
.send-email-form__input {
display: flex;
height: 22px;
@@ -85,18 +73,17 @@
background: var(--main-white, #fff);
color: var(--character-title-85, rgba(0, 0, 0, 0.85));
- /* Body/regular */
font-family: Roboto, sans-serif;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px;
}
-
+
.send-email-form__input:focus {
outline: none;
}
-
+
.send-email-form__error {
display: flex;
padding: 1px 0px;
@@ -104,11 +91,9 @@
gap: 10px;
align-self: stretch;
color: var(--red-red-100, #f34444);
-
- /* Body/regular */
font-family: Roboto, sans-serif;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px;
-}
+}
\ No newline at end of file
diff --git a/FrontEnd/src/components/RestorePassword/components/restorepassword/restorepassword-form/RestorePasswordFormContent.js b/FrontEnd/src/components/RestorePassword/components/restorepassword/restorepassword-form/RestorePasswordFormContent.js
index aede37452..9ed8a2126 100644
--- a/FrontEnd/src/components/RestorePassword/components/restorepassword/restorepassword-form/RestorePasswordFormContent.js
+++ b/FrontEnd/src/components/RestorePassword/components/restorepassword/restorepassword-form/RestorePasswordFormContent.js
@@ -34,7 +34,7 @@ export function RestorePasswordFormContentComponent({ setIsValid }) {
handleSubmit,
getValues,
formState: { errors, isValid },
- } = useForm();
+ } = useForm({mode: 'all'});
useEffect(() => {
const formIsValid = isValid;
@@ -123,7 +123,7 @@ export function RestorePasswordFormContentComponent({ setIsValid }) {
diff --git a/FrontEnd/src/components/RestorePassword/pages/RestorePasswordPage.js b/FrontEnd/src/components/RestorePassword/pages/RestorePasswordPage.js
index 4b3ddb80a..27e5f7b79 100644
--- a/FrontEnd/src/components/RestorePassword/pages/RestorePasswordPage.js
+++ b/FrontEnd/src/components/RestorePassword/pages/RestorePasswordPage.js
@@ -1,3 +1,4 @@
+import { Link } from 'react-router-dom';
import styles from './RestorePasswordPage.module.css';
import DotDecorComponent from '../UI/dotDecor/DotDecor';
import { RestorePasswordFormComponent } from '../components/restorepassword/RestorePasswordForm';
@@ -13,9 +14,9 @@ export function RestorePasswordPage() {