refactor: public design review

This commit is contained in:
Carlos Valente
2025-02-15 12:59:06 +01:00
committed by Carlos Valente
parent 1edde03bb4
commit 9c41f8ff6b
20 changed files with 420 additions and 259 deletions
@@ -11,7 +11,8 @@ import {
import { isOntimeEvent, OntimeEvent, OntimeRundownEntry } from 'ontime-types';
import { usePartialRundown } from '../../../common/hooks-query/useRundown';
import { useScheduleOptions } from '../../backstage/backstage.options';
import { useScheduleOptions } from './schedule.options';
interface ScheduleContextState {
events: OntimeEvent[];
@@ -51,6 +52,7 @@ export const ScheduleProvider = ({
const containerRef = useRef<HTMLUListElement>(null);
// After the view is rendered, we paginate by hiding elements that dont fit
useLayoutEffect(() => {
if (!containerRef.current) return;