From 316e75c3f7bb518bb525c122576379999d47bed5 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sun, 22 Sep 2024 04:03:45 +0300 Subject: [PATCH] Implement the old template rendering of the event component --- src/Schedule/Event.jsx | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/Schedule/Event.jsx b/src/Schedule/Event.jsx index 1e71e60..bf7d109 100644 --- a/src/Schedule/Event.jsx +++ b/src/Schedule/Event.jsx @@ -1,11 +1,18 @@ -import PropTypes from 'prop-types'; +import { isTrackHidden } from './utils.js'; +import Speaker from './Speaker.jsx'; +import FeedbackLink from './FeedbackLink.jsx'; -export default function Event({ - title, -}) { - return ({title}); +export default function Event(event) { + return (<> + {event.title} +
+ {event.participant_users && !isTrackHidden(event.track) && <> + {event.participant_users.map(speaker => speaker && )} + } +

+ + + +

+ ); } - -Event.propTypes = { - title: PropTypes.string.isRequired, -};