Skip to content

Commit

Permalink
Fix format klint
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosgub committed Sep 16, 2024
1 parent 0852a7f commit e03fead
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit e03fead

Please sign in to comment.