mirror of
https://github.com/openMF/mobile-wallet.git
synced 2026-02-06 11:56:48 +00:00
fix : Updated Review Transfer bottomSheet (#1923)
This commit is contained in:
parent
a34016a497
commit
56b51908bc
@ -243,16 +243,18 @@ 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,
|
||||
)
|
||||
}
|
||||
LazyColumn(
|
||||
modifier = modifier.fillMaxWidth(),
|
||||
verticalArrangement = Arrangement.spacedBy(KptTheme.spacing.md),
|
||||
) {
|
||||
items(items = accounts, key = { account -> account.id }) { account ->
|
||||
AccountItem(
|
||||
account = account,
|
||||
@ -263,6 +265,7 @@ private fun AccountList(
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user