From 29b98a3b26a91ab9aa89b1d0ca084e5969514f74 Mon Sep 17 00:00:00 2001 From: clice lee Date: Tue, 23 Jul 2024 19:42:57 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=9D=BC=EC=9A=B0=ED=84=B0=20=EC=97=B0=EA=B2=B0=20?= =?UTF-8?q?-=ED=94=84=EB=A1=9C=ED=95=84=20=ED=8E=B8=EC=A7=91=20=EB=9D=BC?= =?UTF-8?q?=EC=9A=B0=ED=84=B0=20=EC=97=B0=EA=B2=B0=20-=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=95=84=EC=9B=83=EC=8B=9C=20=ED=99=88=20=ED=99=94=EB=A9=B4?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=97=B0=EA=B2=B0=20-=EB=82=B4=EA=B0=80?= =?UTF-8?q?=EB=A7=8C=EB=93=A0=20=ED=86=A0=EB=A1=A0=20=ED=81=B4=EB=A6=AD?= =?UTF-8?q?=EC=8B=9C=20debate=EB=A1=9C=20=EC=97=B0=EA=B2=B0=20-=EB=82=B4?= =?UTF-8?q?=EA=B0=80=20=EC=B0=B8=EC=97=AC=ED=95=9C=20=ED=86=A0=EB=A1=A0=20?= =?UTF-8?q?=ED=81=B4=EB=A6=AD=EC=8B=9C=20participated-debates=EB=A1=9C=20?= =?UTF-8?q?=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.tsx | 2 ++ src/pages/MyPage/MyPage.tsx | 28 ++++++++++++++++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index 9c6478e..82713f3 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -11,6 +11,7 @@ import DebatePage from './pages/HistoryPage/Debate'; import RankingPage from './pages/RankingPage/RankingPage'; import PwdChangePage from './pages/ChangeInfoPage/PwdChangePage'; import MyPage from './pages/MyPage/MyPage'; +import ProfileEditPage from './pages/ChangeInfoPage/ProfileEditPage'; ReactDOM.createRoot(document.getElementById('root')!).render( @@ -24,6 +25,7 @@ ReactDOM.createRoot(document.getElementById('root')!).render( } /> } /> } /> + } /> diff --git a/src/pages/MyPage/MyPage.tsx b/src/pages/MyPage/MyPage.tsx index 5a06700..b1a9224 100644 --- a/src/pages/MyPage/MyPage.tsx +++ b/src/pages/MyPage/MyPage.tsx @@ -1,8 +1,28 @@ import React from 'react'; import alarm from '../../assets/images/ic_alarm.svg'; import profile from '../../assets/images/ic_profile.svg'; +import { useNavigate } from 'react-router-dom'; const MyPage: React.FC = () => { + const navigate = useNavigate(); + + const handleProfileEditClick = () => { + navigate('/profile-edit'); + }; + + const handleLogoutClick = () => { + // 로그아웃 로직 추가 + navigate('/'); + }; + + const handleDebateClick = () => { + navigate('/debate'); + }; + + const handleParticipatedDebatesClick = () => { + navigate('/participated-debates'); + }; + return (
@@ -14,16 +34,16 @@ const MyPage: React.FC = () => {

김잇픽

kimitpick@gmail.com

- - + +

히스토리

-

내가 만든 토론

-

내가 참여한 토론

+

내가 만든 토론

+

내가 참여한 토론