From 42b6e2fd2c64bc559f0373431bb4b32b5c6aecfa Mon Sep 17 00:00:00 2001 From: HyunJinNo Date: Fri, 6 Sep 2024 00:05:12 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=97=AC=ED=96=89=EC=9D=BC=EA=B8=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=97=90=20?= =?UTF-8?q?=EC=A0=91=EA=B7=BC=20=EB=B6=88=EA=B0=80=EB=8A=A5=ED=95=9C=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../diary/edit/DiaryEditorContainer.tsx | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/containers/diary/edit/DiaryEditorContainer.tsx b/src/containers/diary/edit/DiaryEditorContainer.tsx index f19794e2..f0f9a5fb 100644 --- a/src/containers/diary/edit/DiaryEditorContainer.tsx +++ b/src/containers/diary/edit/DiaryEditorContainer.tsx @@ -11,7 +11,7 @@ import { useRouter } from "next/navigation"; import { useEffect, useState } from "react"; import sanitizeHtml from "sanitize-html"; import { parse } from "node-html-parser"; -import { useForm } from "react-hook-form"; +import { FormProvider, useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; interface Props { @@ -137,21 +137,23 @@ const DiaryEditorContainer = ({ diaryData }: Props) => { }, []); return ( - setDateRangeModal(true)} - closeDateRangeModal={() => setDateRangeModal(false)} - showAddressModal={() => setAddressModal(true)} - closeAddressModal={() => setAddressModal(false)} - setCurrentDay={(day: number) => - diaryEditorStore.setDiaryEditor({ currentDay: day }) - } - onSubmit={onSubmit} - /> + + setDateRangeModal(true)} + closeDateRangeModal={() => setDateRangeModal(false)} + showAddressModal={() => setAddressModal(true)} + closeAddressModal={() => setAddressModal(false)} + setCurrentDay={(day: number) => + diaryEditorStore.setDiaryEditor({ currentDay: day }) + } + onSubmit={onSubmit} + /> + ); };