From 96378a5581a4bf3f9da54122784f81ac55d5f130 Mon Sep 17 00:00:00 2001 From: Vishnu Sreekumaran Nair <200557136@student.georgianc.on.ca> Date: Tue, 18 Feb 2025 13:53:02 -0500 Subject: [PATCH] remove box container and move fallback outisde wrapper --- src/Pages/Maintenance/index.jsx | 99 ++++++++++++++------------------- 1 file changed, 43 insertions(+), 56 deletions(-) diff --git a/src/Pages/Maintenance/index.jsx b/src/Pages/Maintenance/index.jsx index f963032bf..bd3309127 100644 --- a/src/Pages/Maintenance/index.jsx +++ b/src/Pages/Maintenance/index.jsx @@ -42,66 +42,53 @@ const Maintenance = () => { fetchMaintenanceWindows(); }, [page, rowsPerPage, updateTrigger]); + if (maintenanceWindows.length === 0) { + return ( + + ); + } + return ( - [class*="fallback__"])': { - position: "relative", - border: 1, - borderColor: theme.palette.primary.lowContrast, - borderRadius: theme.shape.borderRadius, - borderStyle: "dashed", - backgroundColor: theme.palette.primary.main, - overflow: "hidden", - }, - }} - > - {maintenanceWindows.length > 0 && ( - - + + + - - + Create maintenance window + - )} - {maintenanceWindows.length === 0 && ( - - )} - + ); };