From 66fe8b3ef6643537bde80a4832fcadc83b046211 Mon Sep 17 00:00:00 2001 From: leedj312 Date: Tue, 11 Mar 2025 17:59:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=9A=94=EC=B2=98=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=20=ED=8F=BC=20=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=ED=94=BC=EC=BB=A4?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/components/ui/matDmd/baseForm/component.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/wr/components/ui/matDmd/baseForm/component.tsx b/apps/wr/components/ui/matDmd/baseForm/component.tsx index 5a94fec62..9c04603e1 100644 --- a/apps/wr/components/ui/matDmd/baseForm/component.tsx +++ b/apps/wr/components/ui/matDmd/baseForm/component.tsx @@ -1,11 +1,18 @@ import { useWrStore } from "@/app/store"; -import { FormField, FormItem, FormLabel, FormUi, SelectBox } from "@common/business_components"; -import { DatePicker, Input } from "@common/components"; +import { DatePicker, FormField, FormItem, FormLabel, FormUi, SelectBox } from "@common/business_components"; +import { Input } from "@common/components"; +import { useState } from "react"; export function BaseForm(form:any){ const { dmd } = useWrStore((state) => state); + const [dmdDate, setDmdDate] = useState(new Date()) + + + const onChangeDate=(val:Date|undefined)=>{ + if(val)setDmdDate(val); + } return( <> @@ -104,7 +111,7 @@ export function BaseForm(form:any){ render={({ field }) => ( 요구시기 - + )} />