Skip to content

Commit

Permalink
Merge pull request #188 from bsideproject/feature/Report
Browse files Browse the repository at this point in the history
[feat] myPage -> logout 부분 수정
  • Loading branch information
KinDDoGGang authored Oct 11, 2023
2 parents 54cd5af + dbd4117 commit e4e9db5
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 e4e9db5

Please sign in to comment.