infra and notification

This commit is contained in:
Alex Holliday committed 2025-12-28 18:59:05 +00:00
1 parent 4dfeb71a9d
commit e55ae64222
8 files changed
+52 -48

No files matched your search

@@ -1,4 +1,3 @@
import { monitorSchemaInfra } from "@/validation";
import { useGet, usePatch } from "@/hooks/UseApi";
import { InfraForm } from "@/pages/infrastructure/InfraForm";
@@ -5,7 +5,7 @@ import { useNavigate } from "react-router";
import { z } from "zod";
import { usePatch, useGet } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { notificationChannelSchema } from "@/validation/zod";
import { notificationChannelSchema } from "@/validation";
import type { INotificationChannel } from "@/types/notification-channel";
type FormValues = z.infer<typeof notificationChannelSchema>;
@@ -3,7 +3,7 @@ import { NotificationChannelsForm } from "./NotificationChannelsForm";
import { useNavigate } from "react-router";
import { z } from "zod";
import { usePost } from "@/hooks/UseApi";
import { notificationChannelSchema } from "@/validation/zod";
import { notificationChannelSchema } from "@/validation";
import type { INotificationChannel } from "@/types/notification-channel";
type FormValues = z.infer<typeof notificationChannelSchema>;
@@ -10,7 +10,7 @@ import { ChannelTypes } from "@/types/notification-channel";
import { zodResolver } from "@hookform/resolvers/zod";
import { useTranslation } from "react-i18next";
import { z } from "zod";
import { notificationChannelSchema } from "@/validation/zod";
import { notificationChannelSchema } from "@/validation";
import { useForm, Controller, type SubmitHandler } from "react-hook-form";
import { useEffect } from "react";
import { useInitForm } from "@/hooks/forms/UseInitNotificationsChannelForm";
@@ -79,6 +79,7 @@ export const NotificationChannelsForm = ({
<Controller
name="name"
control={control}
defaultValue={defaults.name}
render={({ field }) => (
<TextInput
{...field}