This commit is contained in:
Николай Полтщук 2023-08-10 18:57:06 +03:00
parent 1687a71d8b
commit 0406af40b8

View File

@ -361,28 +361,33 @@ export const ProjectTracker = () => {
</span> */} </span> */}
<p>добавить колонку</p> <p>добавить колонку</p>
</div> </div>
<div className={projectBoard.projectUsers?.length ? "tasks__head__persons" : "tasks__head__persons noProjectUsers"}> <div
className={
projectBoard.projectUsers?.length
? "tasks__head__persons"
: "tasks__head__persons noProjectUsers"
}
>
{projectBoard.projectUsers?.length > 3 && ( {projectBoard.projectUsers?.length > 3 && (
<span className="countPersons">+1...</span> <span className="countPersons">+1...</span>
)} )}
{Boolean(projectBoard.projectUsers?.length) && {Boolean(projectBoard.projectUsers?.length) && (
<div className="projectPersons"> <div className="projectPersons">
{ {projectBoard.projectUsers.slice(0, 3).map((person) => {
projectBoard.projectUsers.slice(0, 3).map((person) => { return (
return ( <img
<img key={person.user_id}
key={person.user_id} src={
src={ person.user?.avatar
person.user?.avatar ? urlForLocal(person.user.avatar)
? urlForLocal(person.user.avatar) : avatarMok
: avatarMok }
} alt="avatar"
alt="avatar" />
/> );
); })}
})}
</div> </div>
} )}
<span <span
className="addPerson" className="addPerson"
onClick={() => { onClick={() => {