Add task count (ProjectSelect.tsx)

This commit is contained in:
0x1eef 2024-05-15 20:32:56 -03:00
parent 0ce23e903b
commit 1e03a31169

View file

@ -18,7 +18,13 @@ export function ProjectSelect({ onChange, selected }: Props) {
style={{ backgroundColor: project.color }}
className="flex w-2/8 rounded w-8 h-8 mr-3 cursor-pointer"
></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>
),
value: project.name,