From fa1adc04d95904367e79f818c3c69eec742efcd2 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:29:02 -0600 Subject: [PATCH] severity type enum --- web/src/components/timeline/EventReviewTimeline.tsx | 4 ++-- web/src/components/timeline/EventSegment.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/components/timeline/EventReviewTimeline.tsx b/web/src/components/timeline/EventReviewTimeline.tsx index fc0c9d16d..4b6735093 100644 --- a/web/src/components/timeline/EventReviewTimeline.tsx +++ b/web/src/components/timeline/EventReviewTimeline.tsx @@ -9,7 +9,7 @@ import { } from "react"; import EventSegment from "./EventSegment"; import { useEventUtils } from "@/hooks/use-event-utils"; -import { ReviewSegment } from "@/types/review"; +import { ReviewSegment, ReviewSeverity } from "@/types/review"; export type EventReviewTimelineProps = { segmentDuration: number; @@ -22,7 +22,7 @@ export type EventReviewTimelineProps = { minimapStartTime?: number; minimapEndTime?: number; events: ReviewSegment[]; - severityType: string; + severityType: ReviewSeverity; contentRef: RefObject; }; diff --git a/web/src/components/timeline/EventSegment.tsx b/web/src/components/timeline/EventSegment.tsx index 8aba4fb25..3650b5922 100644 --- a/web/src/components/timeline/EventSegment.tsx +++ b/web/src/components/timeline/EventSegment.tsx @@ -1,6 +1,6 @@ import { useEventUtils } from "@/hooks/use-event-utils"; import { useSegmentUtils } from "@/hooks/use-segment-utils"; -import { ReviewSegment } from "@/types/review"; +import { ReviewSegment, ReviewSeverity } from "@/types/review"; import { useMemo } from "react"; type EventSegmentProps = { @@ -11,7 +11,7 @@ type EventSegmentProps = { showMinimap: boolean; minimapStartTime?: number; minimapEndTime?: number; - severityType: string; + severityType: ReviewSeverity; }; type MinimapSegmentProps = {