Skip to content

Commit

Permalink
👻 Align TaskStateIcon Icon status fields with IconedStatus
Browse files Browse the repository at this point in the history
Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 committed Jul 1, 2024
1 parent 376f354 commit d90f5a5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions client/src/app/components/Icons/TaskStateIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,29 @@ export const TaskStateIcon: FC<{ state?: TaskState }> = ({ state }) => {
case "No task":
return <UnknownIcon />;
case "Canceled":
return <TimesCircleIcon />;
return (
<Icon status="info">
<TimesCircleIcon />
</Icon>
);
case "Succeeded":
return (
<Icon status={"success"}>
<Icon status="success">
<CheckCircleIcon />
</Icon>
);
case "Failed":
return (
<Icon status={"danger"}>
<Icon status="danger">
<ExclamationCircleIcon />
</Icon>
);
case "Running":
return <InProgressIcon />;
return (
<Icon status="info">
<InProgressIcon />
</Icon>
);
case "Pending":
return <PendingIcon />;
case "QuotaBlocked":
Expand Down

0 comments on commit d90f5a5

Please sign in to comment.