-
Notifications
You must be signed in to change notification settings - Fork 2
[chore/#48] home 뷰 수정 #51
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
Conversation
JiWoo1261
left a comment
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 (state.isLocationMenuVisible) { | ||
| LocationList( | ||
| selected = state.selectedLocation, | ||
| locations = listOf("개포동", "논현동", "뭔동", "동동동", "스꾸삐", "4글자유"), |
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.
스꾸삐 먼가요
sonms
left a comment
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.
믿습니다
| navigateNext: () -> Unit, | ||
| navigateHomeLocationSetting: () -> Unit, | ||
| modifier: Modifier = Modifier, | ||
| viewModel: HomeViewModel = hiltViewModel(), |
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.
뷰모델을 파라미터로 넘길 경우 재사용성과 생명주기의 문제와 의존성 주입 원칙에 위배되기 때문에 state.~로 관찰한 값을 넘겨주세요
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.
엇...어엇.. 공부하겠습니다
|
|
||
| Spacer(modifier = Modifier.weight(1f)) | ||
|
|
||
| val isFormValid = state.selectedLocation.isNotEmpty() |
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.
이것도 상태에 관련된 내용이라 뷰모델에서 ㅎㅎ
| text = stringResource(id = R.string.ic_onboarding_signup_button), | ||
| enabled = isFormValid, | ||
| onClick = { | ||
| if (isFormValid) { |
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.
? 무슨 용도죵
| ) { | ||
| Icon( | ||
| imageVector = ImageVector.vectorResource(id = R.drawable.ic_home_setting), | ||
| contentDescription = "setting", |
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.
ㅎㅎ 모든 description의 하드 코딩은 지양 해야하지용?
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.
수정하겠습니다!
| } | ||
|
|
||
| @Serializable | ||
| data object HomeLocationSetting : MainTabRoute No newline at end of file |
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.
놉 지역 설정은 메인탭의루트가 아니죠? 단순
화면의 이동은 route로 해야합니다
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.
헉스...
name: pull_request_template
about: pr 생성용 템플릿입니다~
title: ''
labels: ''
assignees: ''
ISSUE
❗ WORK DESCRIPTIONAdd commentMore actions
📸 SCREENSHOT
Android.Emulator.-.Pixel_8a_API_35_5554.2025-07-12.01-54-14.mp4
📢 TO REVIEWERS