Integrate into pagespeed configure
This commit is contained in:
1 parent
19eceec65e
commit
101c5b740e
1 file changed
+9
-7
@@ -14,7 +14,7 @@ import { monitorValidation } from "../../../Validation/validation";
|
|||||||
import { createToast } from "../../../Utils/toastUtils";
|
import { createToast } from "../../../Utils/toastUtils";
|
||||||
import { logger } from "../../../Utils/Logger";
|
import { logger } from "../../../Utils/Logger";
|
||||||
import { ConfigBox } from "../../Monitors/styled";
|
import { ConfigBox } from "../../Monitors/styled";
|
||||||
import Field from "../../../Components/Inputs/Field";
|
import TextInput from "../../../Components/Inputs/TextInput";
|
||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
import Checkbox from "../../../Components/Inputs/Checkbox";
|
import Checkbox from "../../../Components/Inputs/Checkbox";
|
||||||
import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutline";
|
import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutline";
|
||||||
@@ -321,17 +321,18 @@ const PageSpeedConfigure = () => {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Field
|
<TextInput
|
||||||
type="url"
|
type="url"
|
||||||
id="monitor-url"
|
id="monitor-url"
|
||||||
label="URL"
|
label="URL"
|
||||||
placeholder="random.website.com"
|
placeholder="random.website.com"
|
||||||
value={monitor?.url?.replace("http://", "") || ""}
|
value={monitor?.url || ""}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.url}
|
error={errors.url ? true : false}
|
||||||
|
helperText={errors.url}
|
||||||
disabled={true}
|
disabled={true}
|
||||||
/>
|
/>
|
||||||
<Field
|
<TextInput
|
||||||
type="text"
|
type="text"
|
||||||
id="monitor-name"
|
id="monitor-name"
|
||||||
label="Monitor display name"
|
label="Monitor display name"
|
||||||
@@ -339,7 +340,8 @@ const PageSpeedConfigure = () => {
|
|||||||
isOptional={true}
|
isOptional={true}
|
||||||
value={monitor?.name || ""}
|
value={monitor?.name || ""}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.name}
|
error={errors.name ? true : false}
|
||||||
|
helperText={errors.name}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</ConfigBox>
|
</ConfigBox>
|
||||||
@@ -383,7 +385,7 @@ const PageSpeedConfigure = () => {
|
|||||||
(notification) => notification.type === "emails"
|
(notification) => notification.type === "emails"
|
||||||
) ? (
|
) ? (
|
||||||
<Box mx={theme.spacing(16)}>
|
<Box mx={theme.spacing(16)}>
|
||||||
<Field
|
<TextInput
|
||||||
id="notify-email-list"
|
id="notify-email-list"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="name@gmail.com"
|
placeholder="name@gmail.com"
|
||||||
|
|||||||
Reference in new issue
Block a user