diff --git a/feature/addlink/src/main/java/com/strayalpaca/addlink/AddLinkScreen.kt b/feature/addlink/src/main/java/com/strayalpaca/addlink/AddLinkScreen.kt index 0a0249e1..b23cb3a0 100644 --- a/feature/addlink/src/main/java/com/strayalpaca/addlink/AddLinkScreen.kt +++ b/feature/addlink/src/main/java/com/strayalpaca/addlink/AddLinkScreen.kt @@ -161,7 +161,7 @@ fun AddLinkScreen( toggleRemindRadio: (Boolean) -> Unit, onBackPressed: () -> Unit, onClickSaveButton: () -> Unit, - closeToast: () -> Unit + closeToast: () -> Unit, ) { val scrollState = rememberScrollState() val enable = remember(state.step) { diff --git a/feature/addlink/src/main/java/com/strayalpaca/addlink/model/AddLinkScreenState.kt b/feature/addlink/src/main/java/com/strayalpaca/addlink/model/AddLinkScreenState.kt index 624fe9f8..33b673e5 100644 --- a/feature/addlink/src/main/java/com/strayalpaca/addlink/model/AddLinkScreenState.kt +++ b/feature/addlink/src/main/java/com/strayalpaca/addlink/model/AddLinkScreenState.kt @@ -7,7 +7,7 @@ data class AddLinkScreenState( val currentPokit: Pokit? = null, val useRemind: Boolean = false, val step: ScreenStep = ScreenStep.IDLE, - val toastMessage: ToastMessageEvent? = null + val toastMessage: ToastMessageEvent? = null, ) sealed class ScreenStep { @@ -28,5 +28,5 @@ sealed class AddLinkScreenSideEffect { enum class ToastMessageEvent(val stringResourceId: Int) { NETWORK_ERROR(R.string.network_error), - CANNOT_CREATE_POKIT_MORE(R.string.toast_cannot_create_pokit) + CANNOT_CREATE_POKIT_MORE(R.string.toast_cannot_create_pokit), } diff --git a/feature/home/src/main/java/pokitmons/pokit/home/HomeScreen.kt b/feature/home/src/main/java/pokitmons/pokit/home/HomeScreen.kt index 644e303a..bb606c2e 100644 --- a/feature/home/src/main/java/pokitmons/pokit/home/HomeScreen.kt +++ b/feature/home/src/main/java/pokitmons/pokit/home/HomeScreen.kt @@ -37,8 +37,8 @@ import pokitmons.pokit.core.feature.flow.collectAsEffect import pokitmons.pokit.core.ui.R import pokitmons.pokit.core.ui.components.block.pokittoast.PokitToast import pokitmons.pokit.core.ui.theme.PokitTheme -import pokitmons.pokit.home.model.HomeSideEffect import pokitmons.pokit.core.ui.utils.noRippleClickable +import pokitmons.pokit.home.model.HomeSideEffect import pokitmons.pokit.home.pokit.PokitScreen import pokitmons.pokit.home.pokit.PokitViewModel import pokitmons.pokit.home.pokit.ScreenType @@ -63,7 +63,7 @@ fun HomeScreen( val toastMessage by viewModel.toastMessage.collectAsState() viewModel.sideEffect.collectAsEffect { homeSideEffect: HomeSideEffect -> - when(homeSideEffect) { + when (homeSideEffect) { HomeSideEffect.NavigateToAddPokit -> { onNavigateAddPokit() } diff --git a/feature/home/src/main/java/pokitmons/pokit/home/model/SideEffect.kt b/feature/home/src/main/java/pokitmons/pokit/home/model/HomeSideEffect.kt similarity index 100% rename from feature/home/src/main/java/pokitmons/pokit/home/model/SideEffect.kt rename to feature/home/src/main/java/pokitmons/pokit/home/model/HomeSideEffect.kt diff --git a/feature/home/src/main/java/pokitmons/pokit/home/model/HomeToastMessage.kt b/feature/home/src/main/java/pokitmons/pokit/home/model/HomeToastMessage.kt index 7aac6b2e..030598f9 100644 --- a/feature/home/src/main/java/pokitmons/pokit/home/model/HomeToastMessage.kt +++ b/feature/home/src/main/java/pokitmons/pokit/home/model/HomeToastMessage.kt @@ -3,5 +3,5 @@ package pokitmons.pokit.home.model import pokitmons.pokit.home.R enum class HomeToastMessage(val resourceId: Int) { - CANNOT_CREATE_POKIT_MORE(R.string.toast_cannot_create_pokit) + CANNOT_CREATE_POKIT_MORE(R.string.toast_cannot_create_pokit), } diff --git a/feature/home/src/main/java/pokitmons/pokit/home/pokit/PokitViewModel.kt b/feature/home/src/main/java/pokitmons/pokit/home/pokit/PokitViewModel.kt index 60ec5e90..e20b629a 100644 --- a/feature/home/src/main/java/pokitmons/pokit/home/pokit/PokitViewModel.kt +++ b/feature/home/src/main/java/pokitmons/pokit/home/pokit/PokitViewModel.kt @@ -37,7 +37,7 @@ class PokitViewModel @Inject constructor( private val getPokitsUseCase: GetPokitsUseCase, private val getLinksUseCase: GetLinksUseCase, private val deletePokitUseCase: DeletePokitUseCase, - private val getPokitCountUseCase: GetPokitCountUseCase + private val getPokitCountUseCase: GetPokitCountUseCase, ) : ViewModel() { private val _sideEffect = MutableEventFlow()