하수재이용시설현황 화면 구현, 버튼 기능 추가해야됨
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user