Skip to content

Commit

Permalink
Fix: /game url을 /takgu/game으로 수정
Browse files Browse the repository at this point in the history
탁구 페이지의 url이 / 에서 /takgu로 변경됨
  • Loading branch information
yoouyeon committed Dec 23, 2024
1 parent 1a78ece commit 8c49be9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion components/takgu/game/GameResultList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export default function GameResultList({
useGameResultList(path);

const page =
pathName === '/' ? 'main' : pathName === '/game' ? 'game' : 'profile';
pathName === '/takgu'
? 'main'
: pathName === '/takgu/game'
? 'game'
: 'profile';

if (status === 'loading') return <GameResultEmptyItem status={status} />;

Expand Down
2 changes: 1 addition & 1 deletion components/takgu/mode/modeWraps/GameModeWrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function GameModeWrap({
setRadioMode(e.target.value as SeasonMode);
};

const isGamePage = useRouter().pathname === '/game';
const isGamePage = useRouter().pathname === '/takgu/game';

return (
<div>
Expand Down

0 comments on commit 8c49be9

Please sign in to comment.