Skip to content

Commit

Permalink
[#26] Add Survey Detail with navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Jan 30, 2023
1 parent b13876b commit ff3af66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ extension SurveySelectionView {
coordinator.showSurveyDetail(.init(survey: survey))
}

func showSurveyDetail() {
guard let survey = viewModel.currentSurvey else { return }
coordinator.showSurveyDetail(.init(survey: survey))
}

private func updateStates(_ state: SurveySelectionViewState) {
viewState = state
showingLoading = state.isLoading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import co.nimblehq.blisskmmic.domain.usecase.GetCurrentDateUseCase
import co.nimblehq.blisskmmic.domain.usecase.GetProfileUseCase
import co.nimblehq.blisskmmic.domain.usecase.SurveyListUseCase
import co.nimblehq.blisskmmic.helpers.flow.delayFlowOf
import co.nimblehq.blisskmmic.presentation.model.SurveyUiModel
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
Expand Down

0 comments on commit ff3af66

Please sign in to comment.