status page

This commit is contained in:
Alex Holliday committed 2025-12-28 19:49:36 +00:00
1 parent 8fb13273bf
commit 6dcfb67246
7 files changed
+22 -28

No files matched your search

@@ -2,14 +2,11 @@ import { StatusPageForm } from "@/pages/status-page/StatusPageForm";
import { useParams } from "react-router";
import { useNavigate } from "react-router";
import { z } from "zod";
import { usePatch, useGet } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { statusPageSchema } from "@/validation/zod";
import type { IMonitor } from "@/types/monitor";
import type { IStatusPageWithMonitors } from "@/types/status-page";
type FormValues = z.infer<typeof statusPageSchema>;
import type { FormValues } from "@/pages/status-page/StatusPageForm";
const StatusPageConfigPage = () => {
const navigate = useNavigate();
@@ -1,13 +1,10 @@
import { StatusPageForm } from "@/pages/status-page/StatusPageForm";
import { useNavigate } from "react-router";
import { z } from "zod";
import { usePost, useGet } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { statusPageSchema } from "@/validation/zod";
import type { IMonitor } from "@/types/monitor";
type FormValues = z.infer<typeof statusPageSchema>;
import type { FormValues } from "@/pages/status-page/StatusPageForm";
const StatusPageCreatePage = () => {
const navigate = useNavigate();
@@ -9,7 +9,7 @@ import { useTheme } from "@mui/material/styles";
import { zodResolver } from "@hookform/resolvers/zod";
import { useTranslation } from "react-i18next";
import { z } from "zod";
import { statusPageSchema } from "@/validation/zod";
import { statusPageSchema } from "@/validation";
import {
useForm,
Controller,
@@ -20,7 +20,7 @@ import { useEffect } from "react";
import { useInitForm } from "@/hooks/forms/UseInitStatusPageForm";
import type { IMonitor } from "@/types/monitor";
type FormValues = z.infer<typeof statusPageSchema>;
export type FormValues = z.infer<typeof statusPageSchema>;
export const StatusPageForm = ({
initialData,