diff --git a/src/Schedule/Schedule.jsx b/src/Schedule/Schedule.jsx index eeb851c..bdd4583 100644 --- a/src/Schedule/Schedule.jsx +++ b/src/Schedule/Schedule.jsx @@ -7,6 +7,8 @@ import Event from './Event.jsx'; import defaultSpeaker from '../assets/default-speaker.png'; import './Schedule.scss'; import { langs } from './constants.js'; +import Speaker from './Speaker.jsx'; +import FeedbackLink from './FeedbackLink.jsx'; export default function Schedule({ conferenceId, @@ -20,6 +22,7 @@ export default function Schedule({ slots, isLoading, loadingProgress, + isComplete, } = useSchedule(conferenceId); const { @@ -27,6 +30,7 @@ export default function Schedule({ rows, } = useScheduleTable({ events, + tracks, halls, slots, lang, @@ -34,57 +38,46 @@ export default function Schedule({ return (<> {isLoading && } -
+ {isComplete &&

- {header && rows && <> - - - - {header.map(hall => )} - - - - {rows.map(row => - {row.cells.map(cell => )} - )} - - - - {header.map(hall => )} - - -
{hall.name}
- -
{hall.name}
-
- } - {tracks && <> - - - {Object.entries(tracks).filter(([, track]) => - !isTrackHidden(track) - ).map(([trackId, track]) => - - )} - {Object.entries(langs).map(([code, name]) => - - )} - -
{track.name[lang]}
{name}
-
- } - {events && tracks && Object.entries(events).map(([eventId, event]) =>
+ + + + {header.map(hall => )} + + + + {rows.map(row => + {row.cells.map(cell => )} + )} + + + + {header.map(hall => )} + + +
{hall.name}
+ +
{hall.name}
+
+ + + {Object.entries(tracks).filter(([, track]) => + !isTrackHidden(track) + ).map(([trackId, track]) => + + )} + {Object.entries(langs).map(([code, name]) => + + )} + +
{track.name[lang]}
{name}
+
+ {Object.entries(events).map(([eventId, event]) =>

{event.title} - {event.participant_user_ids && !isTrackHidden(tracks[event.track_id]) && speakers && <> - ({event.participant_user_ids.map(speakerId => speakers[speakerId] && - - {getSpeakerName(speakers[speakerId])} - - {speakers[speakerId].organisation && <> - /⁠{speakers[speakerId].organisation}⁠/ - } - ).filter(item => !!item)}) + {event.participant_users && !isTrackHidden(event.track) && <> + ({event.participant_users.map(speaker => speaker && )}) }

{event.abstract &&

@@ -92,12 +85,12 @@ export default function Schedule({

}

- Submit feedback +

)} - {speakers && <> + {<>
{Object.entries(speakers).map(([speakerId, speaker]) => } ); }