-
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-114] 회원가입 화면 플로우 연결 #37
Conversation
- 정책에 따라 키 정수로 변경
- TNT-115 머지되면 Home 대신 Connect화면으로 이동하게 수정
- develop과 머지 된 TNT-115 branch
- isFromMyPage를 추가해 TopBar와 뒤로가기 동작을 다르게 설정
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.
고생하셨습니다 ~~!
isFromMyPage
은 다음 PR에서 수정하든지 아니면 좀 더 좋은 방법을 찾아봅시당
너무 구체적인 이름이라 수정을 해야할 것 같긴 하네요 '-'
verticalAlignment = Alignment.CenterVertically, | ||
modifier = Modifier.padding(vertical = 8.dp), | ||
) { | ||
if (isError && !warningMessage.isNullOrEmpty()) { |
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.
if (isError && !warningMessage.isNullOrEmpty()) { | |
if (isError && warningMessage.isNullOrEmpty().not()) { |
요런 방식으로도 쓸 수 있어염 ㅎ.ㅎ 근데 이건 취향차이 !
@@ -33,28 +30,43 @@ import co.kr.tnt.core.ui.R as uiResource | |||
@Composable | |||
internal fun CodeEntryPage( | |||
state: TraineeConnectUiState, | |||
isFromMyPage: Boolean, |
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.
humm...
@@ -13,6 +13,7 @@ import co.kr.tnt.trainee.connect.model.PTSessionFormData | |||
|
|||
@Composable | |||
internal fun TraineeConnectRoute( | |||
isFromMyPage: Boolean, |
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.
humm..
@@ -63,8 +70,7 @@ fun TraineeProfileSetupScreen() { | |||
) | |||
|
|||
Scaffold( | |||
// TODO 버튼 클릭 시 트레이너/트레이니 화면으로 이동 | |||
topBar = { TnTTopBarWithBackButton(onBackClick = {}) }, | |||
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) }, |
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.
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) }, | |
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) }, |
람다도 리컴포지션 카운트에 영향을 줍니다!
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.
전부 수정했습니다!
enabled = text.isNotBlank() && !isWarning, | ||
onClick = { }, | ||
onClick = { onNextClick() }, |
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.
onClick = { onNextClick() }, | |
onClick = onNextClick, |
} | ||
TnTBottomButton( | ||
text = stringResource(uiResource.string.start), | ||
onClick = { onNextClick() }, |
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.
onClick = { onNextClick() }, | |
onClick = onNextClick, |
@@ -63,7 +70,7 @@ fun TrainerProfileSetupScreen() { | |||
) | |||
|
|||
Scaffold( | |||
topBar = { TnTTopBarWithBackButton(onBackClick = {}) }, | |||
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) }, |
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.
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) }, | |
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) }, |
modifier = Modifier.align(Alignment.BottomCenter), | ||
enabled = text.isNotBlank() && !isWarning, | ||
onClick = { }, | ||
onClick = { onNextClick() }, |
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.
onClick = { onNextClick() }, | |
onClick = onNextClick, |
} | ||
TnTBottomButton( | ||
text = stringResource(uiResource.string.start), | ||
onClick = { onNextClick() }, |
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.
onClick = { onNextClick() }, | |
onClick = onNextClick, |
// TODO 115 머지되면 connect로 이동 | ||
TrainerSignUpRoute( | ||
navigateToPrevious = navigateToPrevious, | ||
navigateToConnect = { navigateToConnect() }, |
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.
navigateToConnect = { navigateToConnect() }, | |
navigateToConnect = navigateToConnect, |
📝 작업 내용
화면 연결
뒤로가기
or건너뛰기
를 누르면 홈 화면으로 이동하도록 수정했습니다뒤로가기
**의 경우,isFromMyPage
를 넘겨받아isFromMyPage
를 통해 **상단바
**도 다르게 보여지도록 수정해뒀습니다수정 사항
Screen
에서Page
로 변경uiResource
)📸 실행 화면
트레이너 회원가입 + 연결 코드
trainer.mp4
트레이니 회원가입 + 연결 코드
⬇️ 연결하기 화면
건너뛰기
trainee.mp4
⬇️ 연결하기 화면
뒤로가기
trainee_3.mp4
⬇️
연결 완료
trainee_2.mp4
🙆🏻 리뷰 요청 사항
없습니다!
👀 레퍼런스