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
@@ -0,0 +1,22 @@
import { memo } from 'react';
import { MaybeString } from 'ontime-types';
import Schedule from './Schedule';
import { ScheduleProvider } from './ScheduleContext';
import ScheduleNav from './ScheduleNav';
interface ScheduleExportProps {
selectedId: MaybeString;
isBackstage?: boolean;
}
export default memo(ScheduleExport);
function ScheduleExport(props: ScheduleExportProps) {
const { selectedId, isBackstage } = props;
return (
<ScheduleProvider selectedEventId={selectedId} isBackstage>
<ScheduleNav className='schedule-nav-container' />
<Schedule isProduction={isBackstage} className='schedule-container' />
</ScheduleProvider>
);
}