From a236bec6c161218070fcc7f99a4f102b48aded14 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Thu, 8 Jan 2026 18:55:17 +0000 Subject: [PATCH] notification channel fix --- client/src/pages/docker/DockerConfig.tsx | 4 ++-- client/src/pages/docker/DockerCreate.tsx | 5 ++--- client/src/pages/infrastructure/InfraConfig.tsx | 4 ++-- client/src/pages/infrastructure/InfraCreate.tsx | 4 ++-- client/src/pages/pagespeed/PageSpeedConfig.tsx | 4 ++-- client/src/pages/pagespeed/PageSpeedCreate.tsx | 4 ++-- client/src/pages/uptime/UptimeConfigure.tsx | 4 ++-- client/src/pages/uptime/UptimeCreate.tsx | 4 ++-- 8 files changed, 16 insertions(+), 17 deletions(-) diff --git a/client/src/pages/docker/DockerConfig.tsx b/client/src/pages/docker/DockerConfig.tsx index 366b57cd6..ee523f675 100644 --- a/client/src/pages/docker/DockerConfig.tsx +++ b/client/src/pages/docker/DockerConfig.tsx @@ -3,14 +3,14 @@ import DockerForm from "@/pages/docker/DockerForm"; import { useParams, useNavigate } from "react-router"; import type { ApiResponse } from "@/types/api"; -import type { INotificationChannel } from "@/types/notification-channel"; +import type { NotificationChannel } from "@/types/notification-channel"; import type { IMonitor } from "@/types/monitor"; import type { SubmitValues } from "@/pages/docker/DockerForm"; const DockerConfigurePage = () => { const { id } = useParams(); const navigate = useNavigate(); - const { response } = useGet>( + const { response } = useGet>( "/notification-channels" ); const { response: monitorResponse } = useGet>( diff --git a/client/src/pages/docker/DockerCreate.tsx b/client/src/pages/docker/DockerCreate.tsx index 1089892bb..4aa97c734 100644 --- a/client/src/pages/docker/DockerCreate.tsx +++ b/client/src/pages/docker/DockerCreate.tsx @@ -2,10 +2,10 @@ import DockerForm, { type SubmitValues } from "@/pages/docker/DockerForm"; import { useNavigate } from "react-router"; import { useGet, usePost } from "@/hooks/UseApi"; import type { ApiResponse } from "@/types/api"; -import type { INotificationChannel } from "@/types/notification-channel"; +import type { NotificationChannel } from "@/types/notification-channel"; const DockerCreatePage = () => { - const { response } = useGet>( + const { response } = useGet>( "/notification-channels" ); const { post, loading, error } = usePost(); @@ -31,4 +31,3 @@ const DockerCreatePage = () => { }; export default DockerCreatePage; - diff --git a/client/src/pages/infrastructure/InfraConfig.tsx b/client/src/pages/infrastructure/InfraConfig.tsx index e0d0956d5..6d9cf7811 100644 --- a/client/src/pages/infrastructure/InfraConfig.tsx +++ b/client/src/pages/infrastructure/InfraConfig.tsx @@ -4,14 +4,14 @@ import { InfraForm } from "@/pages/infrastructure/InfraForm"; import { useParams } from "react-router"; import type { ApiResponse } from "@/types/api"; import { useNavigate } from "react-router"; -import type { INotificationChannel } from "@/types/notification-channel"; +import type { NotificationChannel } from "@/types/notification-channel"; import type { IMonitor } from "@/types/monitor"; import type { SubmitValues } from "@/pages/infrastructure/InfraForm"; const InfraConfigurePage = () => { const { id } = useParams(); const navigate = useNavigate(); - const { response } = useGet>( + const { response } = useGet>( "/notification-channels" ); const { response: monitorResponse } = useGet>( diff --git a/client/src/pages/infrastructure/InfraCreate.tsx b/client/src/pages/infrastructure/InfraCreate.tsx index 042f065a3..5f85bf8ea 100644 --- a/client/src/pages/infrastructure/InfraCreate.tsx +++ b/client/src/pages/infrastructure/InfraCreate.tsx @@ -2,11 +2,11 @@ import { InfraForm } from "@/pages/infrastructure/InfraForm"; import { useNavigate } from "react-router"; import { useGet, usePost } from "@/hooks/UseApi"; import type { ApiResponse } from "@/types/api"; -import type { INotificationChannel } from "@/types/notification-channel"; +import type { NotificationChannel } from "@/types/notification-channel"; import type { SubmitValues } from "@/pages/infrastructure/InfraForm"; const InfraCreatePage = () => { - const { response } = useGet>( + const { response } = useGet>( "/notification-channels" ); const { post, loading, error } = usePost(); diff --git a/client/src/pages/pagespeed/PageSpeedConfig.tsx b/client/src/pages/pagespeed/PageSpeedConfig.tsx index 7f6cb91bc..5f45b9fbb 100644 --- a/client/src/pages/pagespeed/PageSpeedConfig.tsx +++ b/client/src/pages/pagespeed/PageSpeedConfig.tsx @@ -4,14 +4,14 @@ import { PageSpeedForm } from "@/pages/pagespeed/PageSpeedForm"; import { useParams } from "react-router"; import type { ApiResponse } from "@/types/api"; import { useNavigate } from "react-router"; -import type { INotificationChannel } from "@/types/notification-channel"; +import type { NotificationChannel } from "@/types/notification-channel"; import type { IMonitor } from "@/types/monitor"; import type { SubmitValues } from "@/pages/pagespeed/PageSpeedForm"; const PageSpeedConfigurePage = () => { const { id } = useParams(); const navigate = useNavigate(); - const { response } = useGet>( + const { response } = useGet>( "/notification-channels" ); const { response: monitorResponse } = useGet>( diff --git a/client/src/pages/pagespeed/PageSpeedCreate.tsx b/client/src/pages/pagespeed/PageSpeedCreate.tsx index bc490edac..47e0dc707 100644 --- a/client/src/pages/pagespeed/PageSpeedCreate.tsx +++ b/client/src/pages/pagespeed/PageSpeedCreate.tsx @@ -3,11 +3,11 @@ import { PageSpeedForm } from "@/pages/pagespeed/PageSpeedForm"; import { useGet, usePost } from "@/hooks/UseApi"; import type { ApiResponse } from "@/types/api"; import { useNavigate } from "react-router"; -import type { INotificationChannel } from "@/types/notification-channel"; +import type { NotificationChannel } from "@/types/notification-channel"; import type { SubmitValues } from "@/pages/pagespeed/PageSpeedForm"; const UptimeCreatePage = () => { const navigate = useNavigate(); - const { response } = useGet>( + const { response } = useGet>( "/notification-channels" ); const { post, loading, error } = usePost(); diff --git a/client/src/pages/uptime/UptimeConfigure.tsx b/client/src/pages/uptime/UptimeConfigure.tsx index 2fc411aca..79276bc5e 100644 --- a/client/src/pages/uptime/UptimeConfigure.tsx +++ b/client/src/pages/uptime/UptimeConfigure.tsx @@ -4,14 +4,14 @@ import { UptimeForm } from "@/pages/uptime/UptimeForm"; import { useParams } from "react-router"; import type { ApiResponse } from "@/types/api"; import { useNavigate } from "react-router"; -import type { INotificationChannel } from "@/types/notification-channel"; +import type { NotificationChannel } from "@/types/notification-channel"; import type { IMonitor } from "@/types/monitor"; import type { SubmitValues } from "@/pages/uptime/UptimeForm"; const UptimeConfigurePage = () => { const { id } = useParams(); const navigate = useNavigate(); - const { response } = useGet>( + const { response } = useGet>( "/notification-channels" ); const { response: monitorResponse } = useGet>( diff --git a/client/src/pages/uptime/UptimeCreate.tsx b/client/src/pages/uptime/UptimeCreate.tsx index 963cb5ca5..4f10fcfa7 100644 --- a/client/src/pages/uptime/UptimeCreate.tsx +++ b/client/src/pages/uptime/UptimeCreate.tsx @@ -3,11 +3,11 @@ import { UptimeForm } from "./UptimeForm"; import { useGet, usePost } from "@/hooks/UseApi"; import type { ApiResponse } from "@/types/api"; import { useNavigate } from "react-router"; -import type { INotificationChannel } from "@/types/notification-channel"; +import type { NotificationChannel } from "@/types/notification-channel"; import type { SubmitValues } from "@/pages/uptime/UptimeForm"; const UptimeCreatePage = () => { const navigate = useNavigate(); - const { response } = useGet>( + const { response } = useGet>( "/notification-channels" ); const { post, loading, error } = usePost();