diff --git a/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx b/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx
index f41603330..c832d463a 100644
--- a/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx
+++ b/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx
@@ -2,7 +2,7 @@ import { Box, Button, Stack, Typography } from "@mui/material";
import { useSelector } from "react-redux";
import { useTheme } from "@emotion/react";
import { useEffect, useState } from "react";
-import { ConfigBox } from "./styled";
+import ConfigBox from "../../../Components/ConfigBox";
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import { LocalizationProvider } from "@mui/x-date-pickers";
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
@@ -321,18 +321,27 @@ const CreateMaintenance = () => {
Your pings won't be sent during this time frame
-
-
- General Settings
-
-
+
+
+
+ General Settings
+
+
+
+ {
+ handleFormChange("name", event.target.value);
+ }}
+ error={errors["name"] ? true : false}
+ helperText={errors["name"]}
+ />
+
-
-
-
- Start time
-
- All dates and times are in GMT+0 time zone.
-
-
-
- {
- handleTimeChange("startTime", newTime);
- }}
- slotProps={{
- nextIconButton: { sx: { ml: theme.spacing(2) } },
- field: {
- sx: {
- width: "fit-content",
- "& > .MuiOutlinedInput-root": {
- flexDirection: "row-reverse",
- },
- "& input": {
- height: 34,
- p: 0,
- pl: theme.spacing(5),
- },
- "& fieldset": {
- borderColor: theme.palette.border.dark,
- borderRadius: theme.shape.borderRadius,
- },
- "&:not(:has(.Mui-disabled)):not(:has(.Mui-error)) .MuiOutlinedInput-root:not(:has(input:focus)):hover fieldset":
- {
- borderColor: theme.palette.border.dark,
- },
+
+
+ Start time
+
+ All dates and times are in GMT+0 time zone.
+
+
+
+ {
+ handleTimeChange("startTime", newTime);
+ }}
+ slotProps={{
+ nextIconButton: { sx: { ml: theme.spacing(2) } },
+ field: {
+ sx: {
+ width: "fit-content",
+ "& > .MuiOutlinedInput-root": {
+ flexDirection: "row-reverse",
},
+ "& input": {
+ height: 34,
+ p: 0,
+ pl: theme.spacing(5),
+ },
+ "& fieldset": {
+ borderColor: theme.palette.border.dark,
+ borderRadius: theme.shape.borderRadius,
+ },
+ "&:not(:has(.Mui-disabled)):not(:has(.Mui-error)) .MuiOutlinedInput-root:not(:has(input:focus)):hover fieldset":
+ {
+ borderColor: theme.palette.border.dark,
+ },
},
- }}
- error={errors["startTime"]}
- />
-
-
-
-
-
-
- Duration
-
-
+ },
+ }}
+ error={errors["startTime"]}
+ />
+
+
{
handleFormChange("duration", event.target.value);
@@ -491,66 +489,34 @@ const CreateMaintenance = () => {
-
-
- Monitor related settings
-
-
-
-
-
- Friendly name
-
-
-
- {
- handleFormChange("name", event.target.value);
- }}
- error={errors["name"] ? true : false}
- helperText={errors["name"]}
- />
-
-
-
-
-
- Add monitors
-
-
-
-
-
-
-
-
+
+
+
+
+ Monitors to apply maintenance window to
+
+
+
+
+
+
({
- border: 1,
- borderStyle: "solid",
- borderColor: theme.palette.border.light,
- borderRadius: theme.spacing(2),
- backgroundColor: theme.palette.background.main,
- "& > *": { padding: theme.spacing(14) },
- "& > :first-of-type, & > .MuiStack-root > div:first-of-type": {
- flex: 0.6,
- },
- "& > div:last-of-type, & > .MuiStack-root > div:last-of-type": {
- flex: 1,
- },
- "& > .MuiStack-root > div:first-of-type": { paddingRight: theme.spacing(14) },
- "& > .MuiStack-root > div:last-of-type": {
- paddingLeft: theme.spacing(14),
- },
- "& h2": { fontSize: 13.5, fontWeight: 500 },
- "& h3, & p": {
- color: theme.palette.text.tertiary,
- },
- "& h3": { fontWeight: 500 },
-}));