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

[TNT-114] 회원가입 화면 플로우 연결 #37

Merged
merged 16 commits into from
Jan 26, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[TNT-114] fix: 트레이니 회원가입 화면 순서 수정
SeonJeongk committed Jan 26, 2025
commit cb749457db93d1770e69b42927f40b88f33d82b6
Original file line number Diff line number Diff line change
@@ -23,28 +23,28 @@ internal class TraineeSignUpContract {
enum class TraineeSignUpPage {
ProfileSetUp,
BasicInfo,
NoteForTrainer,
PTPurpose,
NoteForTrainer,
SignUpComplete,
;

companion object {
fun getPreviousPage(currentPage: TraineeSignUpPage): TraineeSignUpPage {
return when (currentPage) {
BasicInfo -> ProfileSetUp
NoteForTrainer -> BasicInfo
PTPurpose -> NoteForTrainer
SignUpComplete -> PTPurpose
PTPurpose -> BasicInfo
NoteForTrainer -> PTPurpose
SignUpComplete -> NoteForTrainer
else -> error("No previous page defined for $currentPage")
}
}

fun getNextPage(currentPage: TraineeSignUpPage): TraineeSignUpPage {
return when (currentPage) {
ProfileSetUp -> BasicInfo
BasicInfo -> NoteForTrainer
NoteForTrainer -> PTPurpose
PTPurpose -> SignUpComplete
BasicInfo -> PTPurpose
PTPurpose -> NoteForTrainer
NoteForTrainer -> SignUpComplete
else -> error("No next page defined for $currentPage")
}
}