diff --git a/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/screen/categorymonthdetailexpense/categoryMonthDetailScreenIncome.kt b/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/screen/categorymonthdetailexpense/CategoryMonthDetailScreenExpense.kt similarity index 100% rename from presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/screen/categorymonthdetailexpense/categoryMonthDetailScreenIncome.kt rename to presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/screen/categorymonthdetailexpense/CategoryMonthDetailScreenExpense.kt diff --git a/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/screen/categorymonthdetailincome/observer/categoryMonthDetailIncomeObserver.kt b/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/screen/categorymonthdetailincome/observer/CategoryMonthDetailIncomeObserver.kt similarity index 100% rename from presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/screen/categorymonthdetailincome/observer/categoryMonthDetailIncomeObserver.kt rename to presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/screen/categorymonthdetailincome/observer/CategoryMonthDetailIncomeObserver.kt diff --git a/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/categorymonthdetailexpense/CategoryMonthDetailExpenseViewModel.kt b/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/categorymonthdetailexpense/CategoryMonthDetailExpenseViewModel.kt index f7d5146..6decc7f 100644 --- a/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/categorymonthdetailexpense/CategoryMonthDetailExpenseViewModel.kt +++ b/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/categorymonthdetailexpense/CategoryMonthDetailExpenseViewModel.kt @@ -40,7 +40,12 @@ class CategoryMonthDetailExpenseViewModel( ), ).collect { result -> when (result) { - is GenericState.Success -> setMonthDetailScreenModel(MonthDetailExpenseModelToMonthDetailExpenseScreenModel.map(result.data)) + is GenericState.Success -> setMonthDetailScreenModel( + MonthDetailExpenseModelToMonthDetailExpenseScreenModel.map( + result.data, + ), + ) + else -> Unit } } diff --git a/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/categorymonthdetailincome/CategoryMonthDetailIncomeViewModel.kt b/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/categorymonthdetailincome/CategoryMonthDetailIncomeViewModel.kt index 49b600e..01bd266 100644 --- a/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/categorymonthdetailincome/CategoryMonthDetailIncomeViewModel.kt +++ b/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/categorymonthdetailincome/CategoryMonthDetailIncomeViewModel.kt @@ -41,14 +41,14 @@ class CategoryMonthDetailIncomeViewModel( } } - override fun navigateToEditIncome(incomeScreenModel: IncomeScreenModel): Job = intent { - postSideEffect( - CategoryMonthDetailIncomeScreenSideEffect.NavigateToMonthDetail( - incomeScreenModel, - ), - ) - } - + override fun navigateToEditIncome(incomeScreenModel: IncomeScreenModel): Job = + intent { + postSideEffect( + CategoryMonthDetailIncomeScreenSideEffect.NavigateToMonthDetail( + incomeScreenModel, + ), + ) + } override fun setInitialConfiguration( monthKey: String, diff --git a/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/home/HomeViewModel.kt b/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/home/HomeViewModel.kt index 9e06f93..c166116 100644 --- a/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/home/HomeViewModel.kt +++ b/presentation/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/viewmodel/home/HomeViewModel.kt @@ -86,9 +86,9 @@ class HomeViewModel( override fun navigateToMonthDetail(category: CategoryEnum): Job = intent { - if(category.type==FinanceEnum.EXPENSE){ + if (category.type == FinanceEnum.EXPENSE) { postSideEffect(HomeScreenSideEffect.NavigateToMonthExpenseDetail(category.name)) - }else{ + } else { postSideEffect(HomeScreenSideEffect.NavigateToMonthIncomeDetail(category.name)) } }