Skip to content

Commit

Permalink
👻 Align TaskStateIcon Icon status fields with IconedStatus (#1989)
Browse files Browse the repository at this point in the history
Align `TaskStateIcon` Icon status fields with `IconedStatus`.

This amounts to setting some icons blue instead of black consistently
across tables and the drawer.

Related to #1985

Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 authored Jul 1, 2024
1 parent 1aca61e commit 16d063e
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 16d063e

Please sign in to comment.