mirror of
https://github.com/danilkinkin/buckwheat.git
synced 2025-12-31 04:13:02 +00:00
fix: show analytics if added at least one spent
This commit is contained in:
parent
4319a6fa5d
commit
3111c11e15
1 changed files with 9 additions and 8 deletions
|
|
@ -247,14 +247,15 @@ fun Wallet(
|
|||
),
|
||||
) {
|
||||
Column {
|
||||
ButtonRow(
|
||||
icon = painterResource(R.drawable.ic_analytics),
|
||||
text = stringResource(R.string.view_analytics),
|
||||
onClick = {
|
||||
appViewModel.openSheet(PathState(ANALYTICS_SHEET))
|
||||
}
|
||||
)
|
||||
|
||||
if (spends!!.isNotEmpty()) {
|
||||
ButtonRow(
|
||||
icon = painterResource(R.drawable.ic_analytics),
|
||||
text = stringResource(R.string.view_analytics),
|
||||
onClick = {
|
||||
appViewModel.openSheet(PathState(ANALYTICS_SHEET))
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
val exportCSVLaunch = rememberExportCSV(
|
||||
activityResultRegistryOwner = activityResultRegistryOwner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue