From 4301732c26529abe829eacfc1066557463223d4e Mon Sep 17 00:00:00 2001 From: Mikola Date: Tue, 21 Nov 2023 16:53:05 +0300 Subject: [PATCH] task priority --- .../Modal/ModalRegistration/ModalRegistration.jsx | 10 +++++----- .../Modal/Tracker/ModalTicket/ModalTicket.jsx | 2 +- .../Tracker/TicketFullScreen/TicketFullScreen.jsx | 4 ++-- .../Modal/Tracker/TrackerModal/TrackerModal.jsx | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/Modal/ModalRegistration/ModalRegistration.jsx b/src/components/Modal/ModalRegistration/ModalRegistration.jsx index 8123d88f..e1f77724 100644 --- a/src/components/Modal/ModalRegistration/ModalRegistration.jsx +++ b/src/components/Modal/ModalRegistration/ModalRegistration.jsx @@ -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 && Минимум 6 символов} + {inputsError.name && Минимум 2 символов}
E-mail
@@ -140,7 +140,7 @@ export const ModalRegistration = ({ active, setActive }) => { email: e.target.value, })); }} - placeholder="Email" + placeholder="Почта" /> {inputsError.email && Введите коректный email}
@@ -165,7 +165,7 @@ export const ModalRegistration = ({ active, setActive }) => { password: e.target.value, })); }} - placeholder="Password" + placeholder="Пароль" /> {inputsError.password && Минимум 6 символов} diff --git a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx index a8f1885b..d4286bcd 100644 --- a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx +++ b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx @@ -1013,7 +1013,7 @@ export const ModalTiсket = ({ {typeof taskPriority === "number" ? priority[taskPriority] - : "Выберете приоритет"} + : "Выберите приоритет"} { className="tags__select" onClick={() => setSelectTagsOpen(!selectTagsOpen)} > - Выберете тег + Выберите тег { {typeof taskPriority === "number" ? priority[taskPriority] - : "Выберете приоритет"} + : "Выберите приоритет"} setSelectTagsOpen(!selectTagsOpen)} > - Выберете тег + Выберите тег {selectedPriority ? `Приоритет: ${selectedPriority.name}` - : "Выберети приоритет"} + : "Выберити приоритет"}