task priority

This commit is contained in:
Mikola
2023-11-21 16:53:05 +03:00
parent 8c440ce7c7
commit 4301732c26
4 changed files with 10 additions and 10 deletions

View File

@ -48,7 +48,7 @@ export const ModalRegistration = ({ active, setActive }) => {
if (inputsValue.password.length < 6) {
setInputsError((prevValue) => ({ ...prevValue, password: true }));
}
if (inputsValue.userName.length < 6) {
if (inputsValue.userName.length < 2) {
setInputsError((prevValue) => ({ ...prevValue, name: true }));
}
if (!validateEmail(inputsValue.email)) {
@ -120,9 +120,9 @@ export const ModalRegistration = ({ active, setActive }) => {
userName: e.target.value,
}));
}}
placeholder="Name"
placeholder="Имя"
/>
{inputsError.name && <span>Минимум 6 символов</span>}
{inputsError.name && <span>Минимум 2 символов</span>}
</div>
<div className="inputContainer">
<h5>E-mail</h5>
@ -140,7 +140,7 @@ export const ModalRegistration = ({ active, setActive }) => {
email: e.target.value,
}));
}}
placeholder="Email"
placeholder="Почта"
/>
{inputsError.email && <span>Введите коректный email</span>}
</div>
@ -165,7 +165,7 @@ export const ModalRegistration = ({ active, setActive }) => {
password: e.target.value,
}));
}}
placeholder="Password"
placeholder="Пароль"
/>
{inputsError.password && <span>Минимум 6 символов</span>}
</div>