Skip to content

Commit 4cf9c65

Browse files
committed
Fix for TS error
1 parent b67a8f9 commit 4cf9c65

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ChevronRightIcon } from "@heroicons/react/20/solid";
22
import { TaskEventStyle } from "@trigger.dev/core/v3";
33
import type { TaskEventLevel } from "@trigger.dev/database";
44
import { Fragment } from "react";
5-
import { RunEvent } from "~/presenters/v3/RunPresenter.server";
65
import { cn } from "~/utils/cn";
76

87
type SpanTitleProps = {
@@ -107,9 +106,15 @@ function eventTextClassName(event: Pick<SpanTitleProps, "isError" | "style" | "l
107106
}
108107
}
109108

110-
export function eventBackgroundClassName(
111-
event: Pick<RunEvent["data"], "isError" | "style" | "level" | "isPartial" | "isCancelled">
112-
) {
109+
type RunEvent = {
110+
isError: boolean;
111+
style: TaskEventStyle;
112+
level: TaskEventLevel;
113+
isPartial: boolean;
114+
isCancelled: boolean;
115+
};
116+
117+
export function eventBackgroundClassName(event: RunEvent) {
113118
if (event.isError) {
114119
return "bg-error";
115120
}

0 commit comments

Comments
 (0)