Skip to content

Commit a236bec

Browse files
committed
notification channel fix
1 parent b4d127c commit a236bec

File tree

8 files changed

+16
-17
lines changed

8 files changed

+16
-17
lines changed

client/src/pages/docker/DockerConfig.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import DockerForm from "@/pages/docker/DockerForm";
33

44
import { useParams, useNavigate } from "react-router";
55
import type { ApiResponse } from "@/types/api";
6-
import type { INotificationChannel } from "@/types/notification-channel";
6+
import type { NotificationChannel } from "@/types/notification-channel";
77
import type { IMonitor } from "@/types/monitor";
88
import type { SubmitValues } from "@/pages/docker/DockerForm";
99

1010
const DockerConfigurePage = () => {
1111
const { id } = useParams();
1212
const navigate = useNavigate();
13-
const { response } = useGet<ApiResponse<INotificationChannel[]>>(
13+
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
1414
"/notification-channels"
1515
);
1616
const { response: monitorResponse } = useGet<ApiResponse<IMonitor>>(

client/src/pages/docker/DockerCreate.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import DockerForm, { type SubmitValues } from "@/pages/docker/DockerForm";
22
import { useNavigate } from "react-router";
33
import { useGet, usePost } from "@/hooks/UseApi";
44
import type { ApiResponse } from "@/types/api";
5-
import type { INotificationChannel } from "@/types/notification-channel";
5+
import type { NotificationChannel } from "@/types/notification-channel";
66

77
const DockerCreatePage = () => {
8-
const { response } = useGet<ApiResponse<INotificationChannel[]>>(
8+
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
99
"/notification-channels"
1010
);
1111
const { post, loading, error } = usePost<SubmitValues, any>();
@@ -31,4 +31,3 @@ const DockerCreatePage = () => {
3131
};
3232

3333
export default DockerCreatePage;
34-

client/src/pages/infrastructure/InfraConfig.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { InfraForm } from "@/pages/infrastructure/InfraForm";
44
import { useParams } from "react-router";
55
import type { ApiResponse } from "@/types/api";
66
import { useNavigate } from "react-router";
7-
import type { INotificationChannel } from "@/types/notification-channel";
7+
import type { NotificationChannel } from "@/types/notification-channel";
88
import type { IMonitor } from "@/types/monitor";
99
import type { SubmitValues } from "@/pages/infrastructure/InfraForm";
1010

1111
const InfraConfigurePage = () => {
1212
const { id } = useParams();
1313
const navigate = useNavigate();
14-
const { response } = useGet<ApiResponse<INotificationChannel[]>>(
14+
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
1515
"/notification-channels"
1616
);
1717
const { response: monitorResponse } = useGet<ApiResponse<any>>(

client/src/pages/infrastructure/InfraCreate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { InfraForm } from "@/pages/infrastructure/InfraForm";
22
import { useNavigate } from "react-router";
33
import { useGet, usePost } from "@/hooks/UseApi";
44
import type { ApiResponse } from "@/types/api";
5-
import type { INotificationChannel } from "@/types/notification-channel";
5+
import type { NotificationChannel } from "@/types/notification-channel";
66
import type { SubmitValues } from "@/pages/infrastructure/InfraForm";
77

88
const InfraCreatePage = () => {
9-
const { response } = useGet<ApiResponse<INotificationChannel[]>>(
9+
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
1010
"/notification-channels"
1111
);
1212
const { post, loading, error } = usePost<SubmitValues, any>();

client/src/pages/pagespeed/PageSpeedConfig.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { PageSpeedForm } from "@/pages/pagespeed/PageSpeedForm";
44
import { useParams } from "react-router";
55
import type { ApiResponse } from "@/types/api";
66
import { useNavigate } from "react-router";
7-
import type { INotificationChannel } from "@/types/notification-channel";
7+
import type { NotificationChannel } from "@/types/notification-channel";
88
import type { IMonitor } from "@/types/monitor";
99
import type { SubmitValues } from "@/pages/pagespeed/PageSpeedForm";
1010

1111
const PageSpeedConfigurePage = () => {
1212
const { id } = useParams();
1313
const navigate = useNavigate();
14-
const { response } = useGet<ApiResponse<INotificationChannel[]>>(
14+
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
1515
"/notification-channels"
1616
);
1717
const { response: monitorResponse } = useGet<ApiResponse<any>>(

client/src/pages/pagespeed/PageSpeedCreate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { PageSpeedForm } from "@/pages/pagespeed/PageSpeedForm";
33
import { useGet, usePost } from "@/hooks/UseApi";
44
import type { ApiResponse } from "@/types/api";
55
import { useNavigate } from "react-router";
6-
import type { INotificationChannel } from "@/types/notification-channel";
6+
import type { NotificationChannel } from "@/types/notification-channel";
77
import type { SubmitValues } from "@/pages/pagespeed/PageSpeedForm";
88
const UptimeCreatePage = () => {
99
const navigate = useNavigate();
10-
const { response } = useGet<ApiResponse<INotificationChannel[]>>(
10+
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
1111
"/notification-channels"
1212
);
1313
const { post, loading, error } = usePost<SubmitValues>();

client/src/pages/uptime/UptimeConfigure.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { UptimeForm } from "@/pages/uptime/UptimeForm";
44
import { useParams } from "react-router";
55
import type { ApiResponse } from "@/types/api";
66
import { useNavigate } from "react-router";
7-
import type { INotificationChannel } from "@/types/notification-channel";
7+
import type { NotificationChannel } from "@/types/notification-channel";
88
import type { IMonitor } from "@/types/monitor";
99
import type { SubmitValues } from "@/pages/uptime/UptimeForm";
1010

1111
const UptimeConfigurePage = () => {
1212
const { id } = useParams();
1313
const navigate = useNavigate();
14-
const { response } = useGet<ApiResponse<INotificationChannel[]>>(
14+
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
1515
"/notification-channels"
1616
);
1717
const { response: monitorResponse } = useGet<ApiResponse<IMonitor>>(

client/src/pages/uptime/UptimeCreate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { UptimeForm } from "./UptimeForm";
33
import { useGet, usePost } from "@/hooks/UseApi";
44
import type { ApiResponse } from "@/types/api";
55
import { useNavigate } from "react-router";
6-
import type { INotificationChannel } from "@/types/notification-channel";
6+
import type { NotificationChannel } from "@/types/notification-channel";
77
import type { SubmitValues } from "@/pages/uptime/UptimeForm";
88
const UptimeCreatePage = () => {
99
const navigate = useNavigate();
10-
const { response } = useGet<ApiResponse<INotificationChannel[]>>(
10+
const { response } = useGet<ApiResponse<NotificationChannel[]>>(
1111
"/notification-channels"
1212
);
1313
const { post, loading, error } = usePost<SubmitValues>();

0 commit comments

Comments
 (0)