From 570f136ef8e3c756704615f869e3eb963a9be841 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Tue, 1 Oct 2024 20:15:55 +0300 Subject: [PATCH] Hide schedule and tracks when stands are selected --- src/Schedule/Schedule.jsx | 68 ++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/src/Schedule/Schedule.jsx b/src/Schedule/Schedule.jsx index e4ec9ff..cc41a01 100644 --- a/src/Schedule/Schedule.jsx +++ b/src/Schedule/Schedule.jsx @@ -53,39 +53,41 @@ export default function Schedule({ {isLoading && } {isComplete &&

- - {header.length > 0 && - - {header.map(hall => )} - - } - - {rows.map(row => - {row.cells.map(cell => )} - )} - - {header.length > 0 && - - {header.map(hall => )} - - } -
{hall.name[lang]}
- {cell.dateHeader && } - {cell.timeSlot && } - {cell.event && } -
{hall.name[lang]}
-
- - - {tracks.filter(track => !isTrackHidden(track)).map(track => - - )} - {Object.entries(langs).map(([langId, langName]) => - - )} - -
{track.name[lang]}
{langName}
-
+ {rows.length > 0 && <> + + {header.length > 0 && + + {header.map(hall => )} + + } + + {rows.map(row => + {row.cells.map(cell => )} + )} + + {header.length > 0 && + + {header.map(hall => )} + + } +
{hall.name[lang]}
+ {cell.dateHeader && } + {cell.timeSlot && } + {cell.event && } +
{hall.name[lang]}
+
+ + + {tracks.filter(track => !isTrackHidden(track)).map(track => + + )} + {Object.entries(langs).map(([langId, langName]) => + + )} + +
{track.name[lang]}
{langName}
+
+ } {events.map(event =>

{event.title}