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 17, 2023
1 parent 3d2b3a0 commit 397ef38
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 397ef38

Please sign in to comment.