-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[마이페이지] 로그아웃 버튼 클릭 시 모달 나타내기 #474
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다! 공통 모달 수정 감사해요
@@ -64,6 +64,7 @@ const GiftAddPageLayout = ({ | |||
setIsModalOpen={setIsModalOpen} | |||
onClickDelete={handleClickConfirmDeleteBtn} | |||
clickedItem={clickedItem} | |||
okButtonText='네, 삭제할게요' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 감사합니다!!:)
console.log(response); | ||
}); | ||
localStorage.clear(); | ||
navigate('/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저희 리팩토링 때 같이 navigate 좀 더 안전하게 사용하는 법 연구해봐요!!
노션에 적어두겠습니다잇!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
정말 맞아요 !!! 따로 빼야 좋은데 좋은 리마인드 감사합니다 !!
<DeleteModal | ||
setIsModalOpen={setIsModalOpen} | ||
onClickDelete={isLogout} | ||
okButtonText='네, 할게요.' | ||
> | ||
정말 로그아웃하시겠어요? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
재사용성 👍👍👍
…ELOPERS/sweet-client into feat/#444-logout_modal
이슈 넘버
구현 사항
Need Review
=> 해당 부분 다시 한번 더 확인해 봤는데, 로그아웃버튼 자체에서 모달을 띄워주는게 아닌, 마이페이지 자체에서 띄워주는거여서 여기서 더 추가 적인 코드분리는 안 될 거 같다라는 판단이 들었습니다 !
해당 부분 리뷰도 언제든지 환영이에요 !
📸 스크린샷
bandicam.2024-03-10.18-51-22-042.mp4
Reference