Add hall labels to schedule
This commit is contained in:
parent
9125c25259
commit
b46549485c
|
@ -11,13 +11,20 @@ export default function Schedule({
|
||||||
events,
|
events,
|
||||||
speakers,
|
speakers,
|
||||||
tracks,
|
tracks,
|
||||||
|
halls,
|
||||||
isLoading,
|
isLoading,
|
||||||
loadingProgress,
|
loadingProgress,
|
||||||
} = useSchedule(conferenceId);
|
} = useSchedule(conferenceId);
|
||||||
|
|
||||||
return (<>
|
return (<>
|
||||||
{isLoading && <p>Loading... <progress value={loadingProgress} /></p>}
|
{isLoading && <p>Loading... <progress value={loadingProgress} /></p>}
|
||||||
<div>schedule goes here</div>
|
{halls && <table border="1">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
{Object.entries(halls).map(([hallId, hall]) => <th key={hallId}>{hall.name[lang]}</th>)}
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>}
|
||||||
{tracks && Object.entries(tracks).map(([trackId, track]) => <div key={trackId} style={{
|
{tracks && Object.entries(tracks).map(([trackId, track]) => <div key={trackId} style={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
border: '1px solid black',
|
border: '1px solid black',
|
||||||
|
|
Loading…
Reference in New Issue