From ba9bb505ed220564f9f3129942496a719d036097 Mon Sep 17 00:00:00 2001 From: Shemy Gan Date: Mon, 4 Nov 2024 10:06:00 -0500 Subject: [PATCH] - update UI based on figma --- .../CreateMonitor/index.jsx | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx b/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx index 252455b89..91d1f351f 100644 --- a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx +++ b/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx @@ -26,6 +26,7 @@ const CreateInfrastructureMonitor = () => { const idMap = { "monitor-url": "url", "monitor-name": "name", + "monitor-secret": "secret", "monitor-checks-http": "type", "monitor-checks-ping": "type", "notify-email-default": "notification-email", @@ -142,7 +143,7 @@ const CreateInfrastructureMonitor = () => { const action = await dispatch(createInfrastructureMonitor({ authToken, monitor: form })); if (action.meta.requestStatus === "fulfilled") { createToast({ body: "Infrastructure monitor created successfully!" }); - navigate("/infrastructure-monitors"); + navigate("/infrastructure-monitors/create"); } else { createToast({ body: "Failed to create monitor." }); } @@ -204,11 +205,10 @@ const CreateInfrastructureMonitor = () => { { +