All views follow offset mode (#1808)

* chore: remove unused

* fix: studio view follow offset mode
This commit is contained in:
Alex Christoffer Rasmussen
2025-10-07 12:11:14 +02:00
parent fc7ed6bd20
commit 57315595a5
3 changed files with 9 additions and 26 deletions
@@ -17,12 +17,12 @@ interface StudioTimersProps {
export default function StudioTimers({ viewSettings }: StudioTimersProps) {
const { getLocalizedString } = useTranslation();
const { eventNow, eventNext, message, time, offset, rundown } = useStudioTimersSocket();
const { eventNow, eventNext, message, time, offset, rundown, expectedRundownEnd } = useStudioTimersSocket();
const schedule = getFormattedScheduleTimes({
offset: offset.absolute,
offset: offset,
actualStart: rundown.actualStart,
expectedEnd: offset.expectedRundownEnd,
expectedEnd: expectedRundownEnd,
});
const event = getFormattedEventData(eventNow, time);
const eventNextTitle = eventNext?.title || '-';
@@ -37,7 +37,7 @@ export default function StudioTimers({ viewSettings }: StudioTimersProps) {
time.phase === TimerPhase.Danger,
);
const offsetState = getOffsetState(offset.absolute);
const offsetState = getOffsetState(offset);
return (
<div className='studio__timers'>