@@ -23,6 +23,7 @@ import to.bitkit.R
2323import to.bitkit.models.NewTransactionSheetDetails
2424import to.bitkit.models.NewTransactionSheetDirection
2525import to.bitkit.models.NewTransactionSheetType
26+ import to.bitkit.ui.scaffold.SheetTopBar
2627import to.bitkit.ui.shared.moneyString
2728import to.bitkit.ui.shared.util.gradientBackground
2829import to.bitkit.ui.theme.AppShapes
@@ -62,22 +63,21 @@ private fun NewTransactionSheetView(
6263 horizontalAlignment = Alignment .CenterHorizontally ,
6364 modifier = Modifier
6465 .fillMaxSize()
65- .padding(16 .dp),
66+ .padding(horizontal = 16 .dp),
6667 ) {
67- Text (
68- text = when (details.type) {
69- NewTransactionSheetType .LIGHTNING -> when (details.direction) {
70- NewTransactionSheetDirection .SENT -> " Sent Instant Bitcoin"
71- else -> " Received Instant Bitcoin"
72- }
68+ val titleText = when (details.type) {
69+ NewTransactionSheetType .LIGHTNING -> when (details.direction) {
70+ NewTransactionSheetDirection .SENT -> stringResource(R .string.wallet__send_sent)
71+ else -> stringResource(R .string.wallet__payment_received)
72+ }
73+
74+ NewTransactionSheetType .ONCHAIN -> when (details.direction) {
75+ NewTransactionSheetDirection .SENT -> stringResource(R .string.wallet__send_sent)
76+ else -> stringResource(R .string.wallet__payment_received)
77+ }
78+ }
7379
74- NewTransactionSheetType .ONCHAIN -> when (details.direction) {
75- NewTransactionSheetDirection .SENT -> " Sent Bitcoin"
76- else -> " Received Bitcoin"
77- }
78- },
79- style = MaterialTheme .typography.titleMedium,
80- )
80+ SheetTopBar (titleText)
8181
8282 Spacer (modifier = Modifier .height(24 .dp))
8383
0 commit comments