diff --git a/apps/client/src/views/common/schedule/ScheduleItem.tsx b/apps/client/src/views/common/schedule/ScheduleItem.tsx index 2fce5a02d..5ce4357c9 100644 --- a/apps/client/src/views/common/schedule/ScheduleItem.tsx +++ b/apps/client/src/views/common/schedule/ScheduleItem.tsx @@ -22,8 +22,7 @@ interface ScheduleItemProps { delay: number; } -export default function ScheduleItem(props: ScheduleItemProps) { - const { timeStart, timeEnd, title, colour, skip, delay } = props; +export default function ScheduleItem({ timeStart, timeEnd, title, colour, skip, delay }: ScheduleItemProps) { const { showExpected } = useScheduleOptions(); if (showExpected) { @@ -67,9 +66,7 @@ export default function ScheduleItem(props: ScheduleItemProps) { ); } -function DelayedScheduleItem(props: ScheduleItemProps) { - const { timeStart, timeEnd, title, colour, skip, delay } = props; - +function DelayedScheduleItem({ timeStart, timeEnd, title, colour, skip, delay }: ScheduleItemProps) { const start = formatTime(timeStart, formatOptions); const end = formatTime(timeEnd, formatOptions); const delayedStart = formatTime(timeStart + delay, formatOptions); @@ -95,9 +92,7 @@ function DelayedScheduleItem(props: ScheduleItemProps) { ); } -function ExpectedScheduleItem(props: ScheduleItemProps) { - const { timeStart, timeEnd, title, colour, skip, delay } = props; - +function ExpectedScheduleItem({ timeStart, timeEnd, title, colour, skip, delay }: ScheduleItemProps) { return (