wr: 항목 표출 변경
This commit is contained in:
@@ -243,6 +243,7 @@ export default function HtdflSttn() {
|
||||
...item,
|
||||
visible: item.visible ?? false,
|
||||
}))}
|
||||
onSaved={() => setIsChHead(false)}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
@@ -259,4 +260,3 @@ export default function HtdflSttn() {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -236,6 +236,7 @@ export default function PbnstSttn() {
|
||||
...item,
|
||||
visible: item.visible ?? false,
|
||||
}))}
|
||||
onSaved={() => setIsChHead(false)}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
@@ -261,4 +262,3 @@ export default function PbnstSttn() {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -284,9 +284,7 @@ export default function RainSttn() {
|
||||
</div>
|
||||
<UiModal
|
||||
open={isChHead}
|
||||
onOpenChange={() => {
|
||||
setIsChHead(!isChHead);
|
||||
}}
|
||||
onOpenChange={() => setIsChHead(!isChHead)}
|
||||
bodyClass={""}
|
||||
body={
|
||||
<HeadChModal
|
||||
@@ -295,6 +293,7 @@ export default function RainSttn() {
|
||||
...item,
|
||||
visible: item.visible ?? false,
|
||||
}))}
|
||||
onSaved={() => setIsChHead(false)}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
@@ -303,7 +302,7 @@ export default function RainSttn() {
|
||||
onOpenChange={() => {
|
||||
setDetailModal({ ...detailModal, isOpen: !detailModal.isOpen });
|
||||
}}
|
||||
bodyClass={"w-[40vw] max-w-none max-h-[calc(100%-70px)]"}
|
||||
bodyClass={"w-[40vw] max-w-none max-h-[calc(100%-70px)] overflow-y-auto"}
|
||||
body={<SttnDetailModal type={"RNB"} formObj={detailModal.data} />}
|
||||
/>
|
||||
</ContentsDiv>
|
||||
@@ -311,4 +310,3 @@ export default function RainSttn() {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -246,6 +246,7 @@ export default function RswtSttn() {
|
||||
visible: item.visible ?? false,
|
||||
}))}
|
||||
type={"RST"}
|
||||
onSaved={() => setIsChHead(false)}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
@@ -263,4 +264,3 @@ export default function RswtSttn() {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,15 @@ import { useEffect } from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { z } from "zod";
|
||||
|
||||
export default function HeadChModal({ headList, type }: { headList: z.infer<typeof sttnHeadListType>, type: string }) {
|
||||
export default function HeadChModal({
|
||||
headList,
|
||||
type,
|
||||
onSaved,
|
||||
}: {
|
||||
headList: z.infer<typeof sttnHeadListType>;
|
||||
type: string;
|
||||
onSaved?: () => void;
|
||||
}) {
|
||||
const { rainChSttnHead, rswtChSttnHead, htdflChSttnHead, pbnstChSttnHead } = useWrStore((state) => state);
|
||||
|
||||
|
||||
@@ -44,11 +52,12 @@ export default function HeadChModal({ headList, type }: { headList: z.infer<type
|
||||
} else if (type === 'PBN') {
|
||||
pbnstChSttnHead(valueList)
|
||||
}
|
||||
onSaved?.();
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<div className="max-h-[95vh] overflow-y-auto">
|
||||
<Form {...form}>
|
||||
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6">
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ export default function SttnDetailModal({
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="">
|
||||
<Title
|
||||
title={
|
||||
type === "RNB"
|
||||
|
||||
Reference in New Issue
Block a user