mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-27 09:59:08 +00:00
feat: progress view
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import useRundown from '../../../common/hooks-query/useRundown';
|
||||
|
||||
import { getTimelineSections } from './timelineUtils';
|
||||
|
||||
import style from './TimelineMarkers.module.scss';
|
||||
|
||||
export function TimelineMarkers() {
|
||||
const { data } = useRundown();
|
||||
|
||||
if (data.revision === -1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const elements = getTimelineSections(data.rundown, data.order);
|
||||
|
||||
return (
|
||||
<div className={style.markers}>
|
||||
{elements.map((tag, index) => {
|
||||
return <span key={index}>{tag}</span>;
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user