Skip to content

Commit

Permalink
feat: enhance TaskCard to display task count alongside status
Browse files Browse the repository at this point in the history
  • Loading branch information
hasib-devs committed Nov 24, 2024
1 parent 621a819 commit 94b60ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/TaskCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ const TaskCard = ({ status }: Props) => {
return (
<>
<div className="flex flex-col">
<h3 className="p-4 border-b text-xl bg-white capitalize">
{status.replace("-", " ")}
<h3 className="p-4 border-b text-xl bg-white capitalize flex items-center gap-3">
<span>{status.replace("-", " ")}</span>
<span className="bg-gray-200 text-gray-600 text-sm rounded-full px-2 ml-2">
{tasks.length}
</span>
</h3>

<div
Expand Down

0 comments on commit 94b60ed

Please sign in to comment.