diff --git a/Client/src/Pages/PageSpeed/Configure/index.jsx b/Client/src/Pages/PageSpeed/Configure/index.jsx
index 9cd016cf7..91d250dd9 100644
--- a/Client/src/Pages/PageSpeed/Configure/index.jsx
+++ b/Client/src/Pages/PageSpeed/Configure/index.jsx
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { useTheme } from "@emotion/react";
-import { Box, Modal, Stack, Typography } from "@mui/material";
+import { Box, Modal, Skeleton, Stack, Typography } from "@mui/material";
import { useDispatch, useSelector } from "react-redux";
import { useNavigate, useParams } from "react-router";
import {
@@ -21,6 +21,53 @@ import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
import "./index.css";
+/**
+ * Renders a skeleton layout.
+ *
+ * @returns {JSX.Element}
+ */
+const SkeletonLayout = () => {
+ const theme = useTheme();
+
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+};
+
const PageSpeedConfigure = () => {
const theme = useTheme();
const navigate = useNavigate();
@@ -55,7 +102,7 @@ const PageSpeedConfigure = () => {
const handleChange = (event, id) => {
let { value } = event.target;
- if ((id = "interval")) {
+ if (id === "interval") {
value = value * MS_PER_MINUTE;
}
setMonitor((prev) => ({ ...prev, [id]: value }));
@@ -97,162 +144,174 @@ const PageSpeedConfigure = () => {
}
};
+ let loading = Object.keys(monitor).length === 0;
+
return (
- }
- onClick={() => navigate(-1)}
- sx={{
- backgroundColor: theme.palette.otherColors.fillGray,
- mb: theme.gap.large,
- px: theme.gap.ml,
- "& svg.MuiSvgIcon-root": {
- mr: theme.gap.small,
- fill: theme.palette.otherColors.slateGray,
- },
- }}
- />
-
+
+
+ Monitor friendly name
+ handleChange(event, "name")}
+ error={errors.name}
+ />
+
+
+ URL
+ handleChange(event, "url")}
+ error={errors.url}
+ disabled={true}
+ />
+
+
+ Check frequency
+
+
+
+ Incidents notifications{" "}
+ (coming soon)
+
+
+
+ When there is a new incident,
+
+
+
+
+
+ console.log("disabled")}
+ error=""
+ />
+
+ You can separate multiple emails with a comma
+
+
+
+
+
+
+
+
+
+ >
+ )}