notification channel fix

This commit is contained in:
Alex Holliday committed 2026-01-08 18:55:17 +00:00
1 parent b4d127c6ce
commit a236bec6c1
8 files changed
+16 -17

No files matched your search

+2 -2
View File
@@ -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<ApiResponse<INotificationChannel[]>>(
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
"/notification-channels"
);
const { response: monitorResponse } = useGet<ApiResponse<IMonitor>>(
+2 -3
View File
@@ -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<ApiResponse<INotificationChannel[]>>(
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
"/notification-channels"
);
const { post, loading, error } = usePost<SubmitValues, any>();
@@ -31,4 +31,3 @@ const DockerCreatePage = () => {
};
export default DockerCreatePage;
@@ -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<ApiResponse<INotificationChannel[]>>(
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
"/notification-channels"
);
const { response: monitorResponse } = useGet<ApiResponse<any>>(
@@ -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<ApiResponse<INotificationChannel[]>>(
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
"/notification-channels"
);
const { post, loading, error } = usePost<SubmitValues, any>();
@@ -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<ApiResponse<INotificationChannel[]>>(
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
"/notification-channels"
);
const { response: monitorResponse } = useGet<ApiResponse<any>>(
@@ -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<ApiResponse<INotificationChannel[]>>(
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
"/notification-channels"
);
const { post, loading, error } = usePost<SubmitValues>();
+2 -2
View File
@@ -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<ApiResponse<INotificationChannel[]>>(
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
"/notification-channels"
);
const { response: monitorResponse } = useGet<ApiResponse<IMonitor>>(
+2 -2
View File
@@ -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<ApiResponse<INotificationChannel[]>>(
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
"/notification-channels"
);
const { post, loading, error } = usePost<SubmitValues>();