refactor me service

This commit is contained in:
Alex Holliday committed 2026-01-07 22:18:48 +00:00
1 parent 03ce8f84ea
commit c1bb1fd29d
9 files changed
+91 -40

No files matched your search

@@ -4,12 +4,12 @@ import { useNavigate } from "react-router";
import { usePost, useGet } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import type { IMonitor } from "@/types/monitor";
import type { IMaintenance } from "@/types/maintenance";
import type { Maintenance } from "@/types/maintenance";
import type { FormValues } from "@/pages/maintenance/MaintenanceForm";
const MaintenanceCreatePage = () => {
const navigate = useNavigate();
const { post, loading } = usePost<FormValues, IMaintenance>();
const { post, loading } = usePost<FormValues, Maintenance>();
const { response, loading: monitorsLoading } =
useGet<ApiResponse<IMonitor[]>>("/monitors");