Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review pr final #1

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Review pr final #1

wants to merge 5 commits into from

Conversation

sadighasanzade
Copy link
Owner

No description provided.

app/build.gradle.kts Show resolved Hide resolved
app/build.gradle.kts Show resolved Hide resolved
Comment on lines +142 to +145
val spendings = when (type) {
HomeViewModel.FetchType.MonthByMonth -> viewModel.monthByMonthSpending.collectAsState()
HomeViewModel.FetchType.ThisMonth -> viewModel.spendingOfThisMonth.collectAsState()
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bu kimi seyler ViewModel'de olmalidi ki lazim olanda test ede bilesen.

Comment on lines +75 to +76
val maxSpending = items.maxBy { it.amount }.amount
val sum = items.sumOf { it.amount }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bu seyler ViewModel'den gonderilse yaxsi olar cunki @Composable saniyede defelerle re-compose ola biler ve her defe bu calculations tekrarlanir ve performansi asagi sala biler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants