diff --git a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx b/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx index 1209225ba..cb6a33555 100644 --- a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx +++ b/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx @@ -3,7 +3,10 @@ import { Box, Button, ButtonGroup, Stack, Typography } from "@mui/material"; import LoadingButton from "@mui/lab/LoadingButton"; import { useSelector, useDispatch } from "react-redux"; import { monitorValidation } from "../../../Validation/validation"; -import { createInfrastructureMonitor, checkInfrastructureEndpointResolution } from "../../../Features/InfrastructureMonitors/infrastructureMonitorsSlice" +import { + createInfrastructureMonitor, + checkInfrastructureEndpointResolution, +} from "../../../Features/InfrastructureMonitors/infrastructureMonitorsSlice"; import { useNavigate } from "react-router-dom"; import { useTheme } from "@emotion/react"; import { createToast } from "../../../Utils/toastUtils"; @@ -140,7 +143,9 @@ const CreateInfrastructureMonitor = () => { userId: user._id, notifications: infrastructureMonitor.notifications, }; - const action = await dispatch(createInfrastructureMonitor({ authToken, monitor: form })); + const action = await dispatch( + createInfrastructureMonitor({ authToken, monitor: form }) + ); if (action.meta.requestStatus === "fulfilled") { createToast({ body: "Infrastructure monitor created successfully!" }); navigate("/infrastructure-monitors/create"); @@ -281,28 +286,60 @@ const CreateInfrastructureMonitor = () => { or percentage. - - + handleChange(event)} /> + + + + + + % + + + + + + + handleChange(event)} + /> + + @@ -314,41 +351,15 @@ const CreateInfrastructureMonitor = () => { - - - - handleChange(event)} - /> - - - - - % - - - + - + { onChange={(event) => handleChange(event)} /> - - - % - + + + % + + - - + + + { onChange={(event) => handleChange(event)} /> - - - °C - + + + °C + + - - + + + { onChange={(event) => handleChange(event)} /> - - - % - + + + % + +