remove start adornment from non-http type monitors
This commit is contained in:
1 parent
9babbfcab4
commit
2e08c8831c
1 file changed
+4
-2
@@ -214,7 +214,7 @@ const CreateMonitor = () => {
|
|||||||
{ _id: 4, name: "4 minutes" },
|
{ _id: 4, name: "4 minutes" },
|
||||||
{ _id: 5, name: "5 minutes" },
|
{ _id: 5, name: "5 minutes" },
|
||||||
];
|
];
|
||||||
|
console.log(monitor.type);
|
||||||
return (
|
return (
|
||||||
<Box className="create-monitor">
|
<Box className="create-monitor">
|
||||||
<Breadcrumbs
|
<Breadcrumbs
|
||||||
@@ -262,7 +262,9 @@ const CreateMonitor = () => {
|
|||||||
<TextInput
|
<TextInput
|
||||||
type={monitor.type === "http" ? "url" : "text"}
|
type={monitor.type === "http" ? "url" : "text"}
|
||||||
id="monitor-url"
|
id="monitor-url"
|
||||||
startAdornment={<HttpAdornment https={https} />}
|
startAdornment={
|
||||||
|
monitor.type === "http" ? <HttpAdornment https={https} /> : null
|
||||||
|
}
|
||||||
label={monitorTypeMaps[monitor.type].label || "URL to monitor"}
|
label={monitorTypeMaps[monitor.type].label || "URL to monitor"}
|
||||||
https={https}
|
https={https}
|
||||||
placeholder={monitorTypeMaps[monitor.type].placeholder || ""}
|
placeholder={monitorTypeMaps[monitor.type].placeholder || ""}
|
||||||
|
|||||||
Reference in new issue
Block a user