Skip to content

Commit

Permalink
feat: Back 버튼 Click Event Binding
Browse files Browse the repository at this point in the history
  • Loading branch information
jungwoo3490 committed Jan 16, 2024
1 parent 6d6c154 commit 840cfd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/common/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export function ShareButton() {
}

export function BackButton({ isDarkMode }: HeaderButtonProps) {
const handleClickBackButton = () => {};
const navigate = useNavigate();
const handleClickBackButton = () => {
navigate(-1);
};

return (
<S.HeaderButton onClick={handleClickBackButton}>
Expand Down

0 comments on commit 840cfd9

Please sign in to comment.