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: 5, name: "5 minutes" },
|
||||
];
|
||||
|
||||
console.log(monitor.type);
|
||||
return (
|
||||
<Box className="create-monitor">
|
||||
<Breadcrumbs
|
||||
@@ -262,7 +262,9 @@ const CreateMonitor = () => {
|
||||
<TextInput
|
||||
type={monitor.type === "http" ? "url" : "text"}
|
||||
id="monitor-url"
|
||||
startAdornment={<HttpAdornment https={https} />}
|
||||
startAdornment={
|
||||
monitor.type === "http" ? <HttpAdornment https={https} /> : null
|
||||
}
|
||||
label={monitorTypeMaps[monitor.type].label || "URL to monitor"}
|
||||
https={https}
|
||||
placeholder={monitorTypeMaps[monitor.type].placeholder || ""}
|
||||
|
||||
Reference in new issue
Block a user