Merge pull request #153 from apuc/registration

task priority
This commit is contained in:
NikoM1k 2023-11-21 16:54:31 +03:00 committed by GitHub
commit 36b015b525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) { if (inputsValue.password.length < 6) {
setInputsError((prevValue) => ({ ...prevValue, password: true })); setInputsError((prevValue) => ({ ...prevValue, password: true }));
} }
if (inputsValue.userName.length < 6) { if (inputsValue.userName.length < 2) {
setInputsError((prevValue) => ({ ...prevValue, name: true })); setInputsError((prevValue) => ({ ...prevValue, name: true }));
} }
if (!validateEmail(inputsValue.email)) { if (!validateEmail(inputsValue.email)) {
@ -120,9 +120,9 @@ export const ModalRegistration = ({ active, setActive }) => {
userName: e.target.value, userName: e.target.value,
})); }));
}} }}
placeholder="Name" placeholder="Имя"
/> />
{inputsError.name && <span>Минимум 6 символов</span>} {inputsError.name && <span>Минимум 2 символов</span>}
</div> </div>
<div className="inputContainer"> <div className="inputContainer">
<h5>E-mail</h5> <h5>E-mail</h5>
@ -140,7 +140,7 @@ export const ModalRegistration = ({ active, setActive }) => {
email: e.target.value, email: e.target.value,
})); }));
}} }}
placeholder="Email" placeholder="Почта"
/> />
{inputsError.email && <span>Введите коректный email</span>} {inputsError.email && <span>Введите коректный email</span>}
</div> </div>
@ -165,7 +165,7 @@ export const ModalRegistration = ({ active, setActive }) => {
password: e.target.value, password: e.target.value,
})); }));
}} }}
placeholder="Password" placeholder="Пароль"
/> />
{inputsError.password && <span>Минимум 6 символов</span>} {inputsError.password && <span>Минимум 6 символов</span>}
</div> </div>

View File

@ -1013,7 +1013,7 @@ export const ModalTiсket = ({
<span> <span>
{typeof taskPriority === "number" {typeof taskPriority === "number"
? priority[taskPriority] ? priority[taskPriority]
: "Выберете приоритет"} : "Выберите приоритет"}
</span> </span>
<img <img
className={selectPriorityOpen ? "open" : ""} className={selectPriorityOpen ? "open" : ""}

View File

@ -1164,7 +1164,7 @@ export const TicketFullScreen = () => {
className="tags__select" className="tags__select"
onClick={() => setSelectTagsOpen(!selectTagsOpen)} onClick={() => setSelectTagsOpen(!selectTagsOpen)}
> >
<span>Выберете тег</span> <span>Выберите тег</span>
<img <img
className={selectTagsOpen ? "open" : ""} className={selectTagsOpen ? "open" : ""}
src={arrowDown} src={arrowDown}
@ -1207,7 +1207,7 @@ export const TicketFullScreen = () => {
<span> <span>
{typeof taskPriority === "number" {typeof taskPriority === "number"
? priority[taskPriority] ? priority[taskPriority]
: "Выберете приоритет"} : "Выберите приоритет"}
</span> </span>
<img <img
className={selectPriorityOpen ? "open" : ""} className={selectPriorityOpen ? "open" : ""}

View File

@ -568,7 +568,7 @@ export const TrackerModal = ({
className="tags__selected__name" className="tags__selected__name"
onClick={() => setSelectTagsOpen(!selectTagsOpen)} onClick={() => setSelectTagsOpen(!selectTagsOpen)}
> >
Выберете тег Выберите тег
<img <img
className={ className={
selectTagsOpen ? "arrow arrow--open" : "arrow" selectTagsOpen ? "arrow arrow--open" : "arrow"
@ -612,7 +612,7 @@ export const TrackerModal = ({
> >
{selectedPriority {selectedPriority
? `Приоритет: ${selectedPriority.name}` ? `Приоритет: ${selectedPriority.name}`
: "Выберети приоритет"} : "Выберити приоритет"}
<img <img
className={selectPriority ? "arrow arrow--open" : "arrow"} className={selectPriority ? "arrow arrow--open" : "arrow"}
src={arrowDown} src={arrowDown}