move ApiResponse

This commit is contained in:
Alex Holliday committed 2025-12-16 19:09:08 +00:00
1 parent 03b6d5976c
commit 0b626f991f
43 files changed
+48 -46

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import Box from "@mui/material/Box";
import type { Header } from "@/components/design-elements/Table";
import type { ICheck, IChecksWithCount } from "@/types/check";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import type { MonitorStatus } from "@/types/monitor";
import { useState } from "react";
+1 -1
View File
@@ -3,7 +3,7 @@ import { useGet, usePatch } from "@/hooks/UseApi";
import { UptimeForm } from "@/pages/uptime/UptimeForm";
import { useParams } from "react-router";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import humanInterval from "human-interval";
import { z } from "zod";
import { useNavigate } from "react-router";
+1 -1
View File
@@ -4,7 +4,7 @@ import humanInterval from "human-interval";
import { z } from "zod";
import { monitorSchema } from "@/validation/zod";
import { useGet, usePost } from "@/hooks/UseApi";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { useNavigate } from "react-router";
import type { INotificationChannel } from "@/types/notification-channel";
const UptimeCreatePage = () => {
+2 -1
View File
@@ -14,7 +14,8 @@ import type { IMonitor, IMonitorWithMonitorStats } from "@/types/monitor";
import useMediaQuery from "@mui/material/useMediaQuery";
import { useTheme } from "@mui/material/styles";
import { useParams } from "react-router";
import { useGet, usePatch, type ApiResponse } from "@/hooks/UseApi";
import { useGet, usePatch } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { useState } from "react";
import { getStatusPalette } from "@/utils/MonitorUtils";
import prettyMilliseconds from "pretty-ms";
+1 -1
View File
@@ -15,7 +15,7 @@ import { InitializingStatusBox } from "@/components/design-elements/StatusBox";
import { useTranslation } from "react-i18next";
import { useTheme } from "@mui/material/styles";
import { useGet } from "@/hooks/UseApi";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import {
type IMonitor,
type IMonitorWithStats,