Skip to content

Commit

Permalink
[feat] myPage -> logout 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JAEMOONLEE committed Oct 11, 2023
1 parent f853697 commit dbd4117
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/ProfileCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export default function ProfileCard({ name, age, gender, imageSrc }: ProfileCard
);

const handleLogout = () => {
setShowModal(true);
};

const doLogout = () => {
signOut({
callbackUrl: '/',
});
Expand Down Expand Up @@ -143,7 +147,7 @@ export default function ProfileCard({ name, age, gender, imageSrc }: ProfileCard
buttonName="Cancel"
buttonName2="Log out"
handleClose={() => setShowModal(false)}
handleSecondButton={() => router.push('/')}
handleSecondButton={() => doLogout()}
/>
)}
</div>
Expand Down

0 comments on commit dbd4117

Please sign in to comment.