Skip to content

Commit ff8bbf7

Browse files
committed
refactor: image background
1 parent 6c59b78 commit ff8bbf7

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/sheets/NewTransactionSheet.kt

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ private fun NewTransactionSheetView(
9898
.fillMaxWidth()
9999
.align(Alignment.BottomEnd)
100100
)
101+
} else {
102+
Image(
103+
painter = painterResource(R.drawable.check),
104+
contentDescription = null,
105+
contentScale = ContentScale.FillWidth,
106+
modifier = Modifier.fillMaxWidth()
107+
)
101108
}
102109

103110
val composition by rememberLottieComposition(
@@ -137,17 +144,6 @@ private fun NewTransactionSheetView(
137144

138145
BalanceHeaderView(sats = details.sats, modifier = Modifier.fillMaxWidth())
139146

140-
if (details.direction == NewTransactionSheetDirection.SENT) {
141-
Spacer(modifier = Modifier.weight(1f))
142-
143-
Image(
144-
painter = painterResource(R.drawable.check),
145-
contentDescription = null,
146-
contentScale = ContentScale.FillWidth,
147-
modifier = Modifier.fillMaxWidth()
148-
)
149-
}
150-
151147
Spacer(modifier = Modifier.weight(1f))
152148

153149
if (details.direction == NewTransactionSheetDirection.SENT) {

0 commit comments

Comments
 (0)