mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-30 10:03:37 +02:00
Showing zap amounts with correct scale.
This commit is contained in:
@@ -447,7 +447,7 @@ private fun ZapAmountChoicePopup(baseNote: Note, accountViewModel: AccountViewMo
|
|||||||
backgroundColor = MaterialTheme.colors.primary
|
backgroundColor = MaterialTheme.colors.primary
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
Text("⚡ ${showAmount(amountInSats.toBigDecimal())}",
|
Text("⚡ ${showAmount(amountInSats.toBigDecimal().setScale(1))}",
|
||||||
color = Color.White,
|
color = Color.White,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
modifier = Modifier.combinedClickable(
|
modifier = Modifier.combinedClickable(
|
||||||
@@ -572,7 +572,7 @@ fun UpdateZapAmountDialog(onClose: () -> Unit, account: Account) {
|
|||||||
postViewModel.removeAmount(amountInSats)
|
postViewModel.removeAmount(amountInSats)
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Text("⚡ ${showAmount(amountInSats.toBigDecimal())} ✖", color = Color.White, textAlign = TextAlign.Center)
|
Text("⚡ ${showAmount(amountInSats.toBigDecimal().setScale(1))} ✖", color = Color.White, textAlign = TextAlign.Center)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user