wr: 항목 표출 변경
This commit is contained in:
@@ -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