하수재이용시설현황 화면 구현, 버튼 기능 추가해야됨

This commit is contained in:
jyha00
2025-05-16 18:04:18 +09:00
parent 1466e04638
commit 613bfd035b
7 changed files with 400 additions and 216 deletions
@@ -8,7 +8,7 @@ import { useForm } from "react-hook-form";
import { z } from "zod";
export default function HeadChModal({headList, type }:{headList : z.infer<typeof sttnHeadListType> ,type:string }) {
const { rainChSttnHead , rswtChSttnHead, htdflChSttnHead} = useWrStore((state) => state);
const { rainChSttnHead , rswtChSttnHead, htdflChSttnHead, pbnstChSttnHead} = useWrStore((state) => state);
let items = headList.map(item => ({id:item.id, title:item.title, val:item.visible }));
@@ -28,12 +28,13 @@ export default function HeadChModal({headList, type }:{headList : z.infer<typeo
const onSubmit = (valueList : z.infer<typeof sttnHeadListType> ) =>{
if(type==='RNB'){
rainChSttnHead(valueList)
}else if(type=== 'RST'){
rswtChSttnHead(valueList)
}else if(type === 'HTB'){
htdflChSttnHead(valueList)
}else if(type === 'PBN'){
pbnstChSttnHead(valueList)
}
}