Skip to content

Commit

Permalink
feat: navigation 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Apr 3, 2024
1 parent ca80b09 commit 2499080
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/useNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ const useNavigation = () => {
router.back();
};

return { goBack };
const goHome = () => {
router.push('/');
};
return { goBack, goHome };
};

export default useNavigation;

0 comments on commit 2499080

Please sign in to comment.