mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 03:43:50 +00:00
c56c5a636d
* chore: upgrade dependencies * chore: remove unused * fix: issue with missing index data * fix: discrepancy on counting events * fix: swapped classes * fix: prevent attempting load in empty list * chore: cleanup completed * chore: remove unused * refactor: convert to typescript * refactor: migrate to new endpoints * refactor: convert to typescript * fix: prevent issue with undefined process * fix: small code smells * fix: issue with missing version variable on build * refactor: configure retries on data fetching * style: design review * fix: prevent cursor out of range * lint: react query linting * style: checkbox styles
26 lines
599 B
TypeScript
26 lines
599 B
TypeScript
import Empty from 'common/components/state/Empty';
|
|
import RundownMenu from 'features/menu/RundownMenu';
|
|
|
|
import useRundown from '../../common/hooks-query/useRundown';
|
|
|
|
import Rundown from './Rundown';
|
|
|
|
import styles from '../editors/Editor.module.scss';
|
|
|
|
export default function RundownWrapper() {
|
|
const { data, status } = useRundown();
|
|
|
|
return (
|
|
<>
|
|
<RundownMenu />
|
|
<div className={styles.content}>
|
|
{status === 'success' && data ? (
|
|
<Rundown entries={data} />
|
|
) : (
|
|
<Empty text='Connecting to server' />
|
|
)}
|
|
</div>
|
|
</>
|
|
);
|
|
}
|