diff --git a/src/Pages/Maintenance/index.jsx b/src/Pages/Maintenance/index.jsx index f963032bf..98accaed0 100644 --- a/src/Pages/Maintenance/index.jsx +++ b/src/Pages/Maintenance/index.jsx @@ -42,66 +42,52 @@ 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 && ( - - - - - - - - )} - {maintenanceWindows.length === 0 && ( - - )} - + + + + + + + ); };