@@ -1,9 +1,9 @@
|
||||
import { useWrStore } from "@/app/store";
|
||||
import { sttnHeadListType } from "@/app/store/ruseFcltMng/fcltSttn/rainSttn/headList";
|
||||
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@common/business_components/ui";
|
||||
import { Form, FormControl, FormField, FormItem, FormLabel, } from "@common/business_components/ui";
|
||||
import { Button, Checkbox } from "@common/components/ui";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useEffect } from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { z } from "zod";
|
||||
|
||||
@@ -11,7 +11,7 @@ export default function HeadChModal({ headList, type }: { headList: z.infer<type
|
||||
const { rainChSttnHead, rswtChSttnHead, htdflChSttnHead, pbnstChSttnHead } = useWrStore((state) => state);
|
||||
|
||||
|
||||
let items = headList.map(item => ({ id: item.id, title: item.title, val: item.visible }));
|
||||
const items = headList.map(item => ({ id: item.id, title: item.title, val: item.visible }));
|
||||
|
||||
const form = useForm<z.infer<typeof sttnHeadListType>>({
|
||||
resolver: zodResolver(sttnHeadListType),
|
||||
|
||||
Reference in New Issue
Block a user