mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 21:24:11 +00:00
feat: keep clock ticking on server drops
This commit is contained in:
committed by
Carlos Valente
parent
9e771a2f24
commit
37dc9a620d
@@ -1,5 +1,6 @@
|
||||
import { Playback } from 'ontime-types';
|
||||
|
||||
import { useAutoTickingClock } from '../../common/hooks/useAutoTickingClock';
|
||||
import { useIsSmallScreen } from '../../common/hooks/useIsSmallScreen';
|
||||
import { useStudioClockSocket } from '../../common/hooks/useSocket';
|
||||
import { cx } from '../../common/utils/styleUtils';
|
||||
@@ -18,7 +19,8 @@ interface StudioClockProps {
|
||||
|
||||
export default function StudioClock({ hideCards }: StudioClockProps) {
|
||||
const isSmallScreen = useIsSmallScreen();
|
||||
const { clock, playback } = useStudioClockSocket();
|
||||
const clock = useAutoTickingClock();
|
||||
const { playback } = useStudioClockSocket();
|
||||
const onAir = playback !== Playback.Stop;
|
||||
|
||||
// if we are on mobile and have to show the cards
|
||||
|
||||
Reference in New Issue
Block a user