File tree Expand file tree Collapse file tree
presentation/src/main/java/com/threegap/bitnagil/presentation/writeroutine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import com.threegap.bitnagil.designsystem.R
2929import com.threegap.bitnagil.designsystem.component.atom.BitnagilTextButton
3030import com.threegap.bitnagil.designsystem.component.block.BitnagilTopBar
3131import com.threegap.bitnagil.presentation.common.flow.collectAsEffect
32+ import com.threegap.bitnagil.presentation.common.toast.GlobalBitnagilToast
3233import com.threegap.bitnagil.presentation.writeroutine.component.atom.namefield.NameField
3334import com.threegap.bitnagil.presentation.writeroutine.component.atom.selectcell.SelectCell
3435import com.threegap.bitnagil.presentation.writeroutine.component.atom.writeroutinebutton.WriteRoutineButton
@@ -57,6 +58,10 @@ fun WriteRoutineScreenContainer(
5758 WriteRoutineSideEffect .MoveToPreviousScreen -> {
5859 navigateToBack()
5960 }
61+
62+ is WriteRoutineSideEffect .ShowToast -> {
63+ GlobalBitnagilToast .showCheck(sideEffect.message)
64+ }
6065 }
6166 }
6267
Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ class WriteRoutineViewModel @AssistedInject constructor(
203203 }
204204 WriteRoutineIntent .EditRoutineSuccess -> {
205205 sendSideEffect(WriteRoutineSideEffect .MoveToPreviousScreen )
206+ sendSideEffect(WriteRoutineSideEffect .ShowToast (" 루틴 수정이 완료되었습니다." ))
206207
207208 return state.copy(
208209 loading = false ,
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ import com.threegap.bitnagil.presentation.common.mviviewmodel.MviSideEffect
44
55sealed class WriteRoutineSideEffect : MviSideEffect {
66 data object MoveToPreviousScreen : WriteRoutineSideEffect ()
7+ data class ShowToast (val message : String ) : WriteRoutineSideEffect()
78}
You can’t perform that action at this time.
0 commit comments