From 5ef11d1e24a061ab53b60eb5115837173ddd41f0 Mon Sep 17 00:00:00 2001 From: eunbenn Date: Thu, 18 Jan 2024 17:32:48 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Uuid=EB=A1=9C=20=EB=9D=BC=EC=9A=B0?= =?UTF-8?q?=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LecueNote/page/LeceuNotePage/index.tsx | 6 +++--- src/Router.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LecueNote/page/LeceuNotePage/index.tsx b/src/LecueNote/page/LeceuNotePage/index.tsx index 457aae2c..abea76a5 100644 --- a/src/LecueNote/page/LeceuNotePage/index.tsx +++ b/src/LecueNote/page/LeceuNotePage/index.tsx @@ -1,6 +1,6 @@ import { useState } from 'react'; +import { useLocation, useNavigate, useParams } from 'react-router-dom'; -import { useNavigate } from 'react-router-dom'; import Header from '../../../components/common/Header'; import CommonModal from '../../../components/common/Modal/CommonModal'; import CreateNote from '../../components/CreateNote'; @@ -33,6 +33,7 @@ function LecueNotePage() { const putMutation = usePutPresignedUrl(); const postMutation = usePostLecueNote(); + const { bookUuid } = useParams() as { bookUuid: string }; const handleClickCategory = ( e: React.MouseEvent, @@ -80,8 +81,7 @@ function LecueNotePage() { bgColor: clickedBgColor, isIconClicked: isIconClicked, }); - // 추후 수정 예정 - navigate(`/lecue-book`); + navigate(`/lecue-book/${bookUuid}`); }; return ( diff --git a/src/Router.tsx b/src/Router.tsx index 65759bfc..0d7373f3 100644 --- a/src/Router.tsx +++ b/src/Router.tsx @@ -23,7 +23,7 @@ function Router() { } /> } /> } /> - } /> + } /> } /> } /> } />