Skip to content

Commit 5ff36c6

Browse files
committed
Organize switch statement for icons nicely
1 parent 121dae6 commit 5ff36c6

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

apps/webapp/app/components/runs/v3/RunIcon.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,16 @@ export function RunIcon({ name, className, spanName }: TaskIconProps) {
8484
case "task-fn-run":
8585
return <RunFunctionIcon className={cn(className, "text-text-dimmed")} />;
8686
case "task-hook-init":
87-
return <WebhookTaskIcon className={cn(className, "text-text-dimmed")} />;
8887
case "task-hook-onStart":
89-
return <WebhookTaskIcon className={cn(className, "text-text-dimmed")} />;
9088
case "task-hook-onSuccess":
91-
return <WebhookTaskIcon className={cn(className, "text-text-dimmed")} />;
92-
case "task-hook-onFailure":
93-
return <WebhookTaskIcon className={cn(className, "text-error")} />;
94-
case "task-hook-onComplete":
95-
return <WebhookTaskIcon className={cn(className, "text-text-dimmed")} />;
9689
case "task-hook-onWait":
97-
return <WebhookTaskIcon className={cn(className, "text-text-dimmed")} />;
9890
case "task-hook-onResume":
91+
case "task-hook-onComplete":
92+
case "task-hook-cleanup":
9993
return <WebhookTaskIcon className={cn(className, "text-text-dimmed")} />;
94+
case "task-hook-onFailure":
10095
case "task-hook-catchError":
10196
return <WebhookTaskIcon className={cn(className, "text-error")} />;
102-
case "task-hook-cleanup":
103-
return <WebhookTaskIcon className={cn(className, "text-text-dimmed")} />;
10497
}
10598

10699
return <InformationCircleIcon className={cn(className, "text-text-dimmed")} />;

0 commit comments

Comments
 (0)