diff --git a/Client/src/Components/ConfigBox/index.jsx b/Client/src/Components/ConfigBox/index.jsx index 28776752f..7cf547232 100644 --- a/Client/src/Components/ConfigBox/index.jsx +++ b/Client/src/Components/ConfigBox/index.jsx @@ -3,10 +3,10 @@ import React from "react"; const ConfigBox = ({ leftLayout, rightLayout }) => { return ( -
+
{leftLayout} {rightLayout} - +
); }; diff --git a/Client/src/Pages/CreateNewMonitor/index.jsx b/Client/src/Pages/CreateNewMonitor/index.jsx index 669f1975c..2ca0f0392 100644 --- a/Client/src/Pages/CreateNewMonitor/index.jsx +++ b/Client/src/Pages/CreateNewMonitor/index.jsx @@ -11,7 +11,7 @@ const CreateNewMonitor = () => { //General Settings Form const [generalSettings, setGeneralSettings] = useState({ url: "", name: "" }); //Checks Form - const [checks, setChecks] = useState({ monitor: "", port: "" }); + const [checks, setChecks] = useState({ type: "", port: "" }); //Incidents Form const [notifications, setNotifications] = useState({ viaSms: false, @@ -48,19 +48,15 @@ const CreateNewMonitor = () => { })); }; - console.log({ - ...generalSettings, - ...checks, - ...notifications, - ...advancedSettings, - ...proxy, - }); + const handleCreateNewMonitor = () => { + + } const ports = ["Port 1", "Port 2", "Port 3"]; const frequencies = [1, 2, 3, 4, 5]; return ( -
+
Create new monitor
{ onChange={(event) => handleChange(event, "monitor", setChecks)} />
- { ))} -
+ */} } /> -
+ {/* TODO */} + {/*
{ } - /> + /> */}
{ ))}
- { onChange={(event) => handleChange(event, "redirects", setAdvancedSettings) } - /> + /> */} } /> -
+ {/* TODO */} + {/*
{ /> } - /> + /> */}
@@ -320,10 +320,10 @@ const CreateNewMonitor = () => { level="primary" label="Create new monitor" sx={{ width: "210px", fontSize: "var(--env-var-font-size-medium)" }} - // onClick={() => handleCreateNewMonitor()} + onClick={() => handleCreateNewMonitor()} />
- + ); };