File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
presentation/src/main/java/com/threegap/bitnagil/presentation/emotion Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import com.threegap.bitnagil.presentation.emotion.model.mvi.EmotionState
1515import dagger.hilt.android.lifecycle.HiltViewModel
1616import kotlinx.coroutines.launch
1717import org.orbitmvi.orbit.syntax.simple.SimpleSyntax
18- import org.orbitmvi.orbit.syntax.simple.postSideEffect
1918import javax.inject.Inject
2019
2120@HiltViewModel
@@ -78,7 +77,7 @@ class EmotionViewModel @Inject constructor(
7877 )
7978 }
8079 EmotionIntent .RegisterRecommendRoutinesSuccess -> {
81- postSideEffect (EmotionSideEffect .NavigateToBack )
80+ sendSideEffect (EmotionSideEffect .NavigateToBack )
8281 return null
8382 }
8483 EmotionIntent .BackToSelectEmotionStep -> {
@@ -101,7 +100,7 @@ class EmotionViewModel @Inject constructor(
101100 }
102101
103102 EmotionIntent .NavigateToBack -> {
104- postSideEffect (EmotionSideEffect .NavigateToBack )
103+ sendSideEffect (EmotionSideEffect .NavigateToBack )
105104 return null
106105 }
107106 }
Original file line number Diff line number Diff line change @@ -12,13 +12,14 @@ import kotlinx.parcelize.Parcelize
1212data class EmotionState (
1313 val emotions : List <Emotion >,
1414 val isLoading : Boolean ,
15- val recommendRoutines : List <EmotionRecommendRoutineUiModel > = emptyList() ,
15+ val recommendRoutines : List <EmotionRecommendRoutineUiModel >,
1616 val step : EmotionScreenStep ,
1717) : MviState {
1818 companion object {
1919 val Init = EmotionState (
2020 emotions = emptyList(),
2121 isLoading = true ,
22+ recommendRoutines = emptyList(),
2223 step = EmotionScreenStep .Emotion ,
2324 )
2425 }
You can’t perform that action at this time.
0 commit comments