fix : Updated Review Transfer bottomSheet (#1923)

This commit is contained in:
JILAKARA REVANTH KUMAR 2025-09-07 12:23:55 +05:30 committed by GitHub
parent a34016a497
commit 56b51908bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 17 deletions

View File

@ -51,4 +51,4 @@ Pod::Spec.new do |spec|
}
]
spec.resources = ['build/compose/cocoapods/compose-resources']
end
end

View File

@ -243,24 +243,27 @@ private fun AccountList(
modifier: Modifier = Modifier,
onClick: (Account) -> Unit,
) {
LazyColumn(
Column(
modifier = modifier.fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(KptTheme.spacing.md),
) {
item {
Text(
text = stringResource(Res.string.feature_make_transfer_from_account),
style = KptTheme.typography.labelLarge,
)
}
items(items = accounts, key = { account -> account.id }) { account ->
AccountItem(
account = account,
selected = selected(account),
onClick = remember(account) {
{ onClick(account) }
},
)
Text(
text = stringResource(Res.string.feature_make_transfer_from_account),
style = KptTheme.typography.labelLarge,
)
LazyColumn(
modifier = modifier.fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(KptTheme.spacing.md),
) {
items(items = accounts, key = { account -> account.id }) { account ->
AccountItem(
account = account,
selected = selected(account),
onClick = remember(account) {
{ onClick(account) }
},
)
}
}
}
}

View File

@ -81,7 +81,10 @@ internal class MakeTransferViewModel(
} else {
val account = result.data.first { it.id == state.defaultAccountId }
sendAction(MakeTransferAction.SelectAccount(account))
ViewState.Content(result.data)
val activeAccounts = result.data.filter {
it.status.active
}
ViewState.Content(activeAccounts)
}
}
}