From a3a2ed8c3fb1a5e96fdd3125fdb246beea34623e Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Mon, 23 Sep 2024 18:57:28 +0300 Subject: [PATCH] Hide table header when no items are available --- src/Schedule/Schedule.jsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Schedule/Schedule.jsx b/src/Schedule/Schedule.jsx index e2ce3ac..6bb4bc2 100644 --- a/src/Schedule/Schedule.jsx +++ b/src/Schedule/Schedule.jsx @@ -48,11 +48,11 @@ export default function Schedule({ {isComplete &&

- - - {header.map(hall => )} - - + {header.length > 0 && + + {header.map(hall => )} + + } {rows.map(row => {row.cells.map(cell => )} )} - + {header.length > 0 && {header.map(hall => )} - + }
{hall.name[lang]}
{hall.name[lang]}
@@ -60,11 +60,11 @@ export default function Schedule({
{hall.name[lang]}