settings
This commit is contained in:
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> = {
|
||||
|
||||
Reference in new issue
Block a user