Files
Checkmate/Client/src/Pages/Maintenance/index.jsx
T

38 lines
969 B
React
Raw Normal View History

2024-08-27 20:11:59 -04:00
import { Box } from "@mui/material";
import { useTheme } from "@emotion/react";
import Fallback from "../../Components/Fallback";
import "./index.css";
2024-08-28 10:28:02 -04:00
const Maintenance = ({ isAdmin }) => {
2024-08-27 20:11:59 -04:00
const theme = useTheme();
return (
2024-08-27 20:11:59 -04:00
<Box
className="maintenance"
sx={{
':has(> [class*="fallback__"])': {
position: "relative",
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
borderStyle: "dashed",
backgroundColor: theme.palette.background.main,
overflow: "hidden",
},
}}
>
<Fallback
title="maintenance window"
checks={[
"Mark your maintenance periods",
"Eliminate any misunderstandings",
"Stop sending alerts in maintenance windows",
]}
2024-08-03 09:40:08 +03:30
link="/maintenance/create"
2024-08-28 10:28:02 -04:00
isAdmin={isAdmin}
/>
2024-08-27 20:11:59 -04:00
</Box>
);
};
export default Maintenance;