Skip to content

Commit

Permalink
Merge pull request #49 from Route-Box/feat-45
Browse files Browse the repository at this point in the history
Fix: 회원탈퇴 API 제거 (#45)
  • Loading branch information
gyulrangdev committed Aug 28, 2024
2 parents 88dd88a + 860b958 commit 30ab0e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/routes/setting/index.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function Setting() {

const { mutateAsync, isPending } = useMutation({
mutationFn: authService.postWithdraw,
// onSuccess: () => {
// navigate({ to: '/' });
// },
onSuccess: () => {
navigate({ to: '/' });
},
});

const {
Expand Down Expand Up @@ -53,10 +53,10 @@ function Setting() {
};

const handleWithdraw = useCallback(() => {
mutateAsync();
// mutateAsync();
navigate({ to: '/' });
alert('탈퇴 되었습니다.');
}, [mutateAsync, navigate]);
}, [navigate]);

return isPending ? (
<Loader />
Expand Down

0 comments on commit 30ab0e5

Please sign in to comment.