Add task count (ProjectSelect.tsx)
This commit is contained in:
parent
0ce23e903b
commit
1e03a31169
1 changed files with 7 additions and 1 deletions
|
@ -18,7 +18,13 @@ export function ProjectSelect({ onChange, selected }: Props) {
|
||||||
style={{ backgroundColor: project.color }}
|
style={{ backgroundColor: project.color }}
|
||||||
className="flex w-2/8 rounded w-8 h-8 mr-3 cursor-pointer"
|
className="flex w-2/8 rounded w-8 h-8 mr-3 cursor-pointer"
|
||||||
></span>
|
></span>
|
||||||
<span className="flex">{project.name}</span>
|
<div className="flex flex-col">
|
||||||
|
<span className="flex">{project.name}</span>
|
||||||
|
<span className="text-sm">
|
||||||
|
{project.openTaskCount} open{" "}
|
||||||
|
{project.openTaskCount === 1 ? "task" : "tasks"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
value: project.name,
|
value: project.name,
|
||||||
|
|
Loading…
Reference in a new issue