diff --git a/app/src/main/java/com/kongjak/koreatechboard/ui/main/MainViewModel.kt b/app/src/main/java/com/kongjak/koreatechboard/ui/main/MainViewModel.kt index dde6c853..d9206c55 100644 --- a/app/src/main/java/com/kongjak/koreatechboard/ui/main/MainViewModel.kt +++ b/app/src/main/java/com/kongjak/koreatechboard/ui/main/MainViewModel.kt @@ -3,8 +3,11 @@ package com.kongjak.koreatechboard.ui.main import com.kongjak.koreatechboard.model.BottomNavigationItem import com.kongjak.koreatechboard.ui.base.BaseViewModel import com.kongjak.koreatechboard.util.routes.Department +import dagger.hilt.android.lifecycle.HiltViewModel +import javax.inject.Inject -class MainViewModel : BaseViewModel(MainState()) { +@HiltViewModel +class MainViewModel @Inject constructor() : BaseViewModel(MainState()) { override fun reduce(oldState: MainState, event: MainEvent) { when (event) { is MainEvent.SetDefaultScreen -> setState(oldState.copy(defaultScreen = event.defaultScreen))