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

- - + +

히스토리

-

내가 만든 토론

-

내가 참여한 토론

+

내가 만든 토론

+

내가 참여한 토론