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() { />