-
Notifications
You must be signed in to change notification settings - Fork 0
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
[TNT-206] TraineeMyPage, TraineeInvitationCodeInput 화면 팝업 작성 #50
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.
제가 popup 컴포넌트 사용하면서 약간 .. 어려웠는데...요? 민서님이 적용하신거 보고 맞춰서 수정해 올리겠습니다. 네이밍도 맞춰 놓을게요! (그냥 Left, right으로 했어서.. 🫠)
/// 팝업 좌측 secondary 버튼 탭 | ||
case tapPopUpSecondaryButton(popUp: PopUp?) | ||
/// 팝업 우측 primary 버튼 탭 | ||
case tapPopUpPrimaryButton(popUp: PopUp?) |
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.
탈퇴/로그아웃 성공 후 확인 눌렀을 때도 primary case가 실행되는거지요?
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.
넵 맞습니다! 버튼 하나인 경우 primary 두개인 경우 두번째가 secondary입니다
/// 기존 유저 (좌측 뒤로가기 버튼) | ||
case existingUser |
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.
해당 케이스가 뷰의 어디에서 사용되는걸까요 ?? 뒤로가기가 있는 초대코드 입력 화면을 미리 생각하셔서 만들어 놓으신걸까요 .. ??
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.
트레이니 마이페이지 -> 초대코드 입력하기 의 플로우에서 사용됩니다!
해당 케이스에서는 상단 네비 기능 표시가 달라집니다
📌 What is the PR?
🪄 Changes
🔥 PR Point
기존 PR에 작성되었던 PopUp 1개의 경우 문제가 없었으나, 화면에 표시될 PopUp이 n개인 경우 해당 데이터 값들을 모두 들고 있어야하며, 방향에 따라서는 View에서 모두 작성될수도 있다는 문제점이 발견되었습니다.
TPopUpAlertState? 타입으로 한 번에 관리하는 것이 제일 좋겠으나.. 시간과 실력 이슈로 인해 현재 구조를 가져가며 최대한 Feature 내에서 해결해보고자 노력했습니다.
tapSecondaryButton(popUp)
,tapPrimaryButton(popUp)
두 개만으로 관리합니다. - 필요 시 switch를 활용하여 분기처리도 가능합니다활용법은 파일을 참고하시면 됩니다.
📸 Screenshot
🙆🏻 To Reviewers
💭 Related Issues