Skip to content
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

Merged
merged 9 commits into from
Mar 11, 2024

Conversation

hoeun0723
Copy link
Contributor

@hoeun0723 hoeun0723 commented Mar 10, 2024

이슈 넘버

구현 사항

  • deleteModal 도입
  • deleteModal 공통 컴포넌트화!! 수정 (clickedItem 존재여부)

Need Review

  • 로그아웃 마이페이지에서 함수 파바박 넣어서 되게 해놨어요 !!! 해당 함수 logout component에 빼면 더 좋을지도!! 그 부분은 조금 더 봐볼게요 !! 일단 기능 체크 부탁드려요 !!
    => 해당 부분 다시 한번 더 확인해 봤는데, 로그아웃버튼 자체에서 모달을 띄워주는게 아닌, 마이페이지 자체에서 띄워주는거여서 여기서 더 추가 적인 코드분리는 안 될 거 같다라는 판단이 들었습니다 !
    해당 부분 리뷰도 언제든지 환영이에요 !
  • 공통 모달 clickedItem 존재 여부에 따른 함수 처리를 수정했어요 !! 해당 부분 지민 언니가 만들어준거 수정한거여서 지민언니한테 보여주면서 수정했습니다 !!!
  • 한가지 더 전달사항은 heigth가 100%로 해놔서, 해당 모달 사용할때 전체 wrapper 바깥에 호출해줘야할 거 같아요 !!! <></> 태그 사용해서 !!

📸 스크린샷

bandicam.2024-03-10.18-51-22-042.mp4

Reference

@hoeun0723 hoeun0723 added feat💡 기능 구현 refactor ⚙️ 개선 사항 마이페이지 👤 마이 페이지 labels Mar 10, 2024
@hoeun0723 hoeun0723 self-assigned this Mar 10, 2024
Copy link

github-actions bot commented Mar 10, 2024

PR Preview Action v1.4.6
🚀 Deployed preview to https://SWEET-DEVELOPERS.github.io/sweet-client/pr-preview/pr-474/
on branch gh-pages at 2024-03-11 15:09 UTC

Copy link
Contributor

@urjimyu urjimyu left a 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='네, 삭제할게요'
Copy link
Contributor

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('/');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저희 리팩토링 때 같이 navigate 좀 더 안전하게 사용하는 법 연구해봐요!!

노션에 적어두겠습니다잇!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정말 맞아요 !!! 따로 빼야 좋은데 좋은 리마인드 감사합니다 !!

Comment on lines +70 to +75
<DeleteModal
setIsModalOpen={setIsModalOpen}
onClickDelete={isLogout}
okButtonText='네, 할게요.'
>
정말 로그아웃하시겠어요?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

재사용성 👍👍👍

@hoeun0723 hoeun0723 merged commit 6fbf4ec into develop Mar 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat💡 기능 구현 refactor ⚙️ 개선 사항 마이페이지 👤 마이 페이지
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants