Skip to content

Commit

Permalink
[#46] fix - routing 에 exact 추가하여 mypage 렌더링 안되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nohgijin committed Jan 13, 2021
1 parent 8861241 commit 2e4c8d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function App() {
<Route path="/category/:categoryid" component={CategoryPage} />
<Route path="/popular" component={PopularPage} />
<Route path="/detail" component={DetailPage} />
<Route path="/mypage" exact component={MyPage} />
<Route path="/mypage/history" component={MyHistoryPage} />
<Route path="/mypage/jjim" component={MyJjimPage} />
<Route path="/mypage" component={MyPage} />
Expand Down
4 changes: 2 additions & 2 deletions src/components/Mypage/Menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const cx = classNames.bind(styles);
function Menu() {
return (
<ol className={cx('ol-menu')}>
<Link to={'/mypage/jjim'}>
<Link to="/mypage/jjim">
<li className={cx('jjim')}>
<AiFillHeart className={cx('AiFillHeart')} />
<div className={cx('title')}>내가 찜한 펀딩</div>
<RiArrowRightSLine className={cx('RiArrowRightSLine')} />
</li>
</Link>
<Link to={'/mypage/history'}>
<Link to="/mypage/history">
<li className={cx('support')}>
<RiShoppingBag3Fill className={cx('RiShoppingBag3Fill')} />
<div className={cx('title')}>내가 후원한 펀딩</div>
Expand Down

0 comments on commit 2e4c8d3

Please sign in to comment.