Skip to content

Commit

Permalink
[CHORE] #47-ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
l5x5l committed Aug 25, 2024
1 parent 57bffe0 commit 22a6a13
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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),
}
4 changes: 2 additions & 2 deletions feature/home/src/main/java/pokitmons/pokit/home/HomeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -63,7 +63,7 @@ fun HomeScreen(
val toastMessage by viewModel.toastMessage.collectAsState()

viewModel.sideEffect.collectAsEffect { homeSideEffect: HomeSideEffect ->
when(homeSideEffect) {
when (homeSideEffect) {
HomeSideEffect.NavigateToAddPokit -> {
onNavigateAddPokit()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<HomeSideEffect>()
Expand Down

0 comments on commit 22a6a13

Please sign in to comment.