diff --git a/client/src/Pages/CreateMonitor/index.tsx b/client/src/Pages/CreateMonitor/index.tsx index 58ba49dcd..3972b8ebb 100644 --- a/client/src/Pages/CreateMonitor/index.tsx +++ b/client/src/Pages/CreateMonitor/index.tsx @@ -144,9 +144,7 @@ const CreateMonitorPage = () => { isEditMode ? `/monitors/${monitorId}` : null ); - // Fetch notifications for the team const { data: notifications } = useGet("/notifications/team"); - // Fetch games for game type monitors const { data: games } = useGet("/monitors/games"); const { schema, defaults } = useMonitorForm({ @@ -215,7 +213,6 @@ const CreateMonitorPage = () => { } if (result?.success) { - // Navigate based on page type if (pageType === "pagespeed") { navigate("/pagespeed"); } else if (pageType === "hardware") { @@ -299,7 +296,6 @@ const CreateMonitorPage = () => { /> )} - {/* General Settings - Dynamic based on type */} { /> )} - {/* Display name field - common to all types */} { } /> - {/* Frequency ConfigBox */} { } /> - {/* Incidents ConfigBox */} { } /> - {/* Notifications ConfigBox */} { } /> - {/* TLS/SSL ConfigBox - only for HTTP monitors */} {watchedType === "http" && ( { /> )} - {/* Advanced Settings ConfigBox - only for HTTP monitors */} {watchedType === "http" && ( { /> )} - {/* Submit Button */}