integrate into configure
This commit is contained in:
1 parent
bbcf32667a
commit
1334645567
1 file changed
+8
-6
@@ -14,7 +14,8 @@ import {
|
|||||||
getUptimeMonitorsByTeamId,
|
getUptimeMonitorsByTeamId,
|
||||||
deleteUptimeMonitor,
|
deleteUptimeMonitor,
|
||||||
} from "../../../Features/UptimeMonitors/uptimeMonitorsSlice";
|
} from "../../../Features/UptimeMonitors/uptimeMonitorsSlice";
|
||||||
import Field from "../../../Components/Inputs/Field";
|
import TextInput from "../../../Components/Inputs/TextInput";
|
||||||
|
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
||||||
import PauseIcon from "../../../assets/icons/pause-icon.svg?react";
|
import PauseIcon from "../../../assets/icons/pause-icon.svg?react";
|
||||||
import ResumeIcon from "../../../assets/icons/resume-icon.svg?react";
|
import ResumeIcon from "../../../assets/icons/resume-icon.svg?react";
|
||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
@@ -343,17 +344,17 @@ const Configure = () => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack gap={theme.spacing(20)}>
|
<Stack gap={theme.spacing(20)}>
|
||||||
<Field
|
<TextInput
|
||||||
type={monitor?.type === "http" ? "url" : "text"}
|
type={monitor?.type === "http" ? "url" : "text"}
|
||||||
https={protocol === "https"}
|
https={protocol === "https"}
|
||||||
|
startAdornment={<HttpAdornment https={protocol === "https"} />}
|
||||||
id="monitor-url"
|
id="monitor-url"
|
||||||
label="URL to monitor"
|
label="URL to monitor"
|
||||||
placeholder="google.com"
|
placeholder="google.com"
|
||||||
value={parsedUrl?.host || monitor?.url || ""}
|
value={parsedUrl?.host || monitor?.url || ""}
|
||||||
disabled={true}
|
disabled={true}
|
||||||
error={errors["url"]}
|
|
||||||
/>
|
/>
|
||||||
<Field
|
<TextInput
|
||||||
type="text"
|
type="text"
|
||||||
id="monitor-name"
|
id="monitor-name"
|
||||||
label="Display name"
|
label="Display name"
|
||||||
@@ -361,7 +362,8 @@ const Configure = () => {
|
|||||||
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>
|
||||||
@@ -405,7 +407,7 @@ const Configure = () => {
|
|||||||
(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