Skip to content

Commit

Permalink
Fixes #200: collaborative projects
Browse files Browse the repository at this point in the history
  • Loading branch information
hussaino03 committed Dec 30, 2024
1 parent fdaab3d commit f248203
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions client/src/components/Modal Management/Layout/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,23 @@ const View = ({
Project
</span>
)}
{task.label && (
{task.label ? (
<span
className="inline-flex text-xs px-1.5 py-0.5 bg-blue-50 dark:bg-blue-500/10
text-blue-600 dark:text-blue-400 rounded-full border
border-blue-200 dark:border-blue-800 whitespace-nowrap"
className={`inline-flex text-xs px-1.5 py-0.5 ${
task.urgent ? 'bg-red-50 dark:bg-red-500/10 text-red-600 dark:text-red-400 border-red-200 dark:border-red-800'
: 'bg-blue-50 dark:bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-200 dark:border-blue-800'
} rounded-full border whitespace-nowrap`}
>
{task.label}
</span>
) : task.urgent && (
<span
className="inline-flex text-xs px-1.5 py-0.5 bg-red-50 dark:bg-red-500/10
text-red-600 dark:text-red-400 rounded-full border
border-red-200 dark:border-red-800 whitespace-nowrap"
>
Urgent
</span>
)}
{!isCompleted && task.deadline && isOverdue(task.deadline) && (
<span
Expand Down

0 comments on commit f248203

Please sign in to comment.