This commit is contained in:
Alex Holliday committed 2025-12-28 19:36:14 +00:00
1 parent a2454cbab6
commit 8fb13273bf
7 files changed
+69 -83

No files matched your search

@@ -1,11 +1,12 @@
import { systemSettingsSchema } from "@/validation/zod";
import { systemSettingsSchema } from "@/validation";
import { useMemo } from "react";
import type { FormValues } from "@/pages/settings/SettingsForm";
import { z } from "zod";
export const useInitForm = ({
initialData,
}: {
initialData: Partial<z.infer<typeof systemSettingsSchema>> | undefined;
initialData: Partial<FormValues> | undefined;
}) => {
return useMemo(() => {
const defaults: z.infer<typeof systemSettingsSchema> = {