feat: milestones

This commit is contained in:
Carlos Valente
2025-07-07 15:37:54 +02:00
committed by Carlos Valente
parent a7ae8598db
commit f2913971db
26 changed files with 610 additions and 77 deletions
@@ -2,6 +2,7 @@ import { useCallback } from 'react';
import {
isOntimeDelay,
isOntimeEvent,
isOntimeMilestone,
MaybeString,
OntimeEntry,
OntimeEvent,
@@ -16,6 +17,7 @@ import { cloneEvent } from '../../common/utils/clone';
import RundownDelay from './rundown-delay/RundownDelay';
import RundownEvent from './rundown-event/RundownEvent';
import RundownMilestone from './rundown-milestone/RundownMilestone';
import { useEventSelection } from './useEventSelection';
export type EventItemActions =
@@ -201,6 +203,16 @@ export default function RundownEntry({
);
} else if (isOntimeDelay(data)) {
return <RundownDelay data={data} hasCursor={hasCursor} />;
} else if (isOntimeMilestone(data)) {
return (
<RundownMilestone
colour={data.colour}
cue={data.cue}
entryId={data.id}
hasCursor={hasCursor}
title={data.title}
/>
);
}
return null;
}