wr: 항목 표출 변경

This commit is contained in:
dongsilove
2026-02-13 21:17:17 +09:00
parent a91bcd9cf7
commit f2a71893d4
6 changed files with 18 additions and 11 deletions
@@ -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"