-
Notifications
You must be signed in to change notification settings - Fork 600
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
Survey-Question-Logic-Implemented #2262
base: master
Are you sure you want to change the base?
Survey-Question-Logic-Implemented #2262
Conversation
viewModel: SurveySubmitViewModel = hiltViewModel(), | ||
queViewModel: SurveyQuestionViewModel = 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.
submitViewmodel
quesViewmodel / questionViewmodel
val uiState2 by queViewModel.surveyQuestionUiState.collectAsStateWithLifecycle() | ||
val uiState by viewModel.surveySubmitUiState.collectAsStateWithLifecycle() |
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.
choose an appropriate name, don't just do uiState , uiState2. its confusing,
@@ -79,68 +81,107 @@ import java.util.Date | |||
@Composable | |||
internal fun SurveyQuestionScreen( | |||
navigateBack: () -> Unit, | |||
survey: Survey?, | |||
id: Int, |
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.
dont pass id
in here, retrieve it from viewmodel.
…tation-Issue # Conflicts: # core/data/src/main/java/com/mifos/core/data/di/DataModule.kt
Fixes JIRA
Please Add Screenshots If there are any UI changes.
survey_question_video.mp4
Please make sure these boxes are checked before submitting your pull request - thanks!
Apply the
MifosStyle.xml
style template to your code in Android Studio.Run the unit tests with
./gradlew check
to make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.