This commit is contained in:
Mikola 2023-11-19 20:01:50 +03:00
parent 9697c375e7
commit e61cb35f8e
4 changed files with 33 additions and 27 deletions

View File

@ -14,8 +14,8 @@ export const ModalLayout = ({
<div
className={active ? `modal-layout active` : "modal-layout"}
onClick={(event) => {
if (event.target.className === 'modal-layout active') {
setActive(false)
if (event.target.className === "modal-layout active") {
setActive(false);
}
}}
{...props}

View File

@ -321,7 +321,7 @@ export const TrackerModal = ({
} else {
setCorrectProjectUsers(projectUsers);
}
initListeners()
initListeners();
}, [active]);
useEffect(() => {
@ -352,7 +352,7 @@ export const TrackerModal = ({
div.classList.contains("tags__dropDown"))
)
) {
setSelectTagsOpen(false)
setSelectTagsOpen(false);
}
if (
@ -364,9 +364,9 @@ export const TrackerModal = ({
div.classList.contains("select__executor__dropDown"))
)
) {
setSelectExecutorTaskOpen(false)
}
setSelectExecutorTaskOpen(false);
}
};
return (
<ModalLayout

View File

@ -43,7 +43,10 @@ export const ProjectTiket = ({ project, index }) => {
if (
event &&
!path.find((div) => div.classList && div.classList.contains(`project-${project.id}`))
!path.find(
(div) =>
div.classList && div.classList.contains(`project-${project.id}`)
)
) {
setModalSelect(false);
}
@ -93,9 +96,12 @@ export const ProjectTiket = ({ project, index }) => {
</div>
</Link>
<span className="menu-settings" onClick={() => {
setModalSelect(!modalSelect)
}}>
<span
className="menu-settings"
onClick={() => {
setModalSelect(!modalSelect);
}}
>
...
</span>

View File

@ -151,9 +151,9 @@ export const Summary = () => {
</a>
);
})}
{!Boolean(gitInfo.length) &&
{!Boolean(gitInfo.length) && (
<p className="noGitItems">Нет актуальных проектов</p>
}
)}
</div>
</div>
)}