mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 22:49:18 +00:00
All views follow offset mode (#1808)
* chore: remove unused * fix: studio view follow offset mode
This commit is contained in:
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user