fix task modal and column priority

This commit is contained in:
2023-06-09 03:19:09 +03:00
parent 4e0a44e5a4
commit f4b55a5d79
9 changed files with 189 additions and 46 deletions

View File

@ -77,15 +77,19 @@ export const TrackerTaskComment = ({
</div>
<div className='comments__list__item__date'>
<span>{getCorrectDate(comment.created_at)}</span>
<div className={commentsEditOpen ? 'edit edit__open' : 'edit'} >
<img src={edit} alt='edit' onClick={() => {
if (commentsEditOpen) {
editComment()
}
setCommentsEditOpen(!commentsEditOpen)
}} />
</div>
<img src={del} alt='delete' onClick={() => deleteComment()} />
{comment.user_id === Number(localStorage.getItem('id')) &&
<>
<div className={commentsEditOpen ? 'edit edit__open' : 'edit'} >
<img src={edit} alt='edit' onClick={() => {
if (commentsEditOpen) {
editComment()
}
setCommentsEditOpen(!commentsEditOpen)
}} />
</div>
<img src={del} alt='delete' onClick={() => deleteComment()} />
</>
}
</div>
</div>
{commentsEditOpen ?