From 7e0b18b31c80fc109e2de2c48a2e66e0f0fefd30 Mon Sep 17 00:00:00 2001 From: eunbenn Date: Thu, 18 Jan 2024 17:31:00 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EB=A6=B0=ED=8A=B8=20=EB=8B=B9=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CreateBook/page/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/CreateBook/page/index.tsx b/src/CreateBook/page/index.tsx index 287944a3..9d8d6495 100644 --- a/src/CreateBook/page/index.tsx +++ b/src/CreateBook/page/index.tsx @@ -13,8 +13,8 @@ function CreateBook() { const [title, setTitle] = useState(''); const [description, setDescription] = useState(''); const [backgroundColor, setBackgroundColor] = useState('#F5F5F5'); - const location = useLocation(); const navigate = useNavigate(); + const location = useLocation(); const { presignedFileName, name } = location.state || {}; const handleClickCompleteButton = async () => { @@ -36,11 +36,15 @@ function CreateBook() { - 레큐북 제목 + + 레큐북 제목 + setTitle(title)} /> - 레큐북 소개 + + 레큐북 소개 + setDescription(description)} @@ -54,7 +58,7 @@ function CreateBook() { />