Skip to content

Commit

Permalink
fix: Action needed status icon
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Dec 25, 2024
1 parent c243f95 commit 4e26614
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { JobCondition, JobStatusType } from "@ctrlplane/validators/jobs";
import Link from "next/link";
import {
IconAlertCircle,
IconCalendarTime,
IconCircle,
IconCircleCheck,
Expand Down Expand Up @@ -69,6 +70,13 @@ const ReleaseIcon: React.FC<{
</div>
);

if (statuses.some((s) => s === JobStatus.ActionRequired))
return (
<div className="rounded-full bg-yellow-400 p-1 dark:text-black">
<IconAlertCircle strokeWidth={2} className="h-4 w-4" />
</div>
);

const allPending = statuses.every((s) => s === JobStatus.Pending);
if (allPending)
return (
Expand Down

0 comments on commit 4e26614

Please sign in to comment.