From 06b067814b9b8b3c98807dd393bb95defcee4422 Mon Sep 17 00:00:00 2001 From: afds4567 <33995840+afds4567@users.noreply.github.com> Date: Sun, 21 Jan 2024 23:02:34 +0900 Subject: [PATCH] Refactor : Profile component and update routingHandlers --- frontend/src/pages/Profile.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend/src/pages/Profile.tsx b/frontend/src/pages/Profile.tsx index e15f8e3d..d4868f5e 100644 --- a/frontend/src/pages/Profile.tsx +++ b/frontend/src/pages/Profile.tsx @@ -16,14 +16,10 @@ import useSetNavbarHighlight from '../hooks/useSetNavbarHighlight'; const TopicCardList = lazy(() => import('../components/TopicCardList')); function Profile() { - const { routePage } = useNavigator(); + const { routingHandlers } = useNavigator(); useSetLayoutWidth(FULLSCREEN); useSetNavbarHighlight('profile'); - const goToNewTopic = () => { - routePage('/new-topic'); - }; - return ( @@ -56,10 +52,9 @@ function Profile() { }>