-
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
[FEAT/#64] 회원가입 ViewModel 작업 #70
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.
굿 !! 고생하셨습니다 .... 프로그래스바도 완벽하게 수정되었네요 !!
이제 api 연결 홧팅합시다 💪🏻
import com.sopt.withsuhyeon.ui.theme.WithSuhyeonTheme.colors | ||
import com.sopt.withsuhyeon.ui.theme.WithSuhyeonTheme.typography | ||
|
||
@Composable | ||
fun FinishRoute( | ||
padding: PaddingValues, | ||
navigateToNext: () -> Unit | ||
navigateToNext: () -> Unit, | ||
viewModel: SignUpViewModel |
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.
= hiltViewModel()
붙여줍시다 !
LaunchedEffect(Unit) { | ||
viewModel.updateProgress(state.progress + 1f / 7) | ||
} |
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.
굿굿!!
@@ -129,6 +142,7 @@ fun SelectProfileScreen( | |||
.alpha(if (profileImage == profileType.titleResId) 1f else 0.3f) | |||
.noRippleClickable { | |||
profileImage = profileType.titleResId | |||
viewModel.updateProfileImage("image${index+1}") |
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.
와 깔끔하다 !
@@ -78,7 +82,8 @@ fun NavGraphBuilder.onBoardingNavGraph( | |||
onNavigateToPostProfileImage: () -> Unit, | |||
onNavigateToSelectLocation: () -> Unit, | |||
onNavigateToFinish: () -> Unit, | |||
onNavigateToHome: () -> Unit | |||
onNavigateToHome: () -> Unit, | |||
getBackStackUploadViewModel: @Composable (NavBackStackEntry) -> SignUpViewModel |
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.
수많은 억까사이를 잘 이겨내셨어요.. ㅜㅜ 고생하셨습니다!! 뷰모델 사용이 익숙치않을텐데 넘 잘해주셨어용 고생하셨습니다!!! 👍
@@ -96,6 +100,16 @@ fun MainNavHost( | |||
onNavigateToSelectLocation = navigator::navigateToSelectLocation, | |||
onNavigateToFinish = navigator::navigateToOnboardingFinish, | |||
onNavigateToHome = navigator::navigateToHome, | |||
getBackStackUploadViewModel = { navBackStackEntry -> |
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.
이거 처리 너무 잘해주셨어요 !!
LaunchedEffect(Unit) { | ||
viewModel.updateProgress(state.progress + 1f / 7) | ||
} |
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.
굿굿!!
@@ -58,21 +65,22 @@ fun SelectLocationScreen( | |||
) | |||
} | |||
val subLocationList = remember { |
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.
지역 가져오는 것만 제거랑 추후에 합치면 좋을 것 같아요 넘 잘하셨습니다 ㅎㅎ
) | ||
} | ||
composable<OnboardingFinishRoute> { | ||
FinishRoute( | ||
navigateToNext = onNavigateToHome, | ||
padding = padding | ||
padding = padding, | ||
viewModel = getBackStackUploadViewModel(it) |
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.
공유 뷰모델때문에 너무 고생하셨어요 ㅜㅡㅜ
Related issue 🛠
Work Description 📝
Screenshot 📸
Screen_Recording_20250123-015035_With-Suhyeon.1.mp4
Uncompleted Tasks 😅
To Reviewers 📢
회원가입 뷰모델 작업 완료했습니다! API 연결 가볼게요~