integrate in to create pagespeed
This commit is contained in:
1 parent
101c5b740e
commit
93a77f4831
1 file changed
+10
-6
@@ -13,6 +13,8 @@ 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 Radio from "../../../Components/Inputs/Radio";
|
import Radio from "../../../Components/Inputs/Radio";
|
||||||
|
import TextInput from "../../../Components/Inputs/TextInput";
|
||||||
|
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
||||||
import Field from "../../../Components/Inputs/Field";
|
import Field from "../../../Components/Inputs/Field";
|
||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
import Checkbox from "../../../Components/Inputs/Checkbox";
|
import Checkbox from "../../../Components/Inputs/Checkbox";
|
||||||
@@ -205,17 +207,18 @@ const CreatePageSpeed = () => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack gap={theme.spacing(15)}>
|
<Stack gap={theme.spacing(15)}>
|
||||||
<Field
|
<TextInput
|
||||||
type={"url"}
|
type={"url"}
|
||||||
id="monitor-url"
|
id="monitor-url"
|
||||||
label="URL to monitor"
|
label="URL to monitor"
|
||||||
https={https}
|
startAdornment={<HttpAdornment https={https} />}
|
||||||
placeholder="google.com"
|
placeholder="google.com"
|
||||||
value={monitor.url}
|
value={monitor.url}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors["url"]}
|
error={errors["url"] ? true : false}
|
||||||
|
helperText={errors["url"]}
|
||||||
/>
|
/>
|
||||||
<Field
|
<TextInput
|
||||||
type="text"
|
type="text"
|
||||||
id="monitor-name"
|
id="monitor-name"
|
||||||
label="Display name"
|
label="Display name"
|
||||||
@@ -223,7 +226,8 @@ const CreatePageSpeed = () => {
|
|||||||
placeholder="Google"
|
placeholder="Google"
|
||||||
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>
|
||||||
@@ -315,7 +319,7 @@ const CreatePageSpeed = () => {
|
|||||||
(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