Skip to content

Commit 8e7dae4

Browse files
committed
feat: check icon
1 parent 5a4a526 commit 8e7dae4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package to.bitkit.ui.screens.wallets.sheets
22

3+
import androidx.compose.foundation.Image
34
import androidx.compose.foundation.layout.Arrangement
45
import androidx.compose.foundation.layout.Column
56
import androidx.compose.foundation.layout.Row
@@ -19,6 +20,8 @@ import androidx.compose.runtime.Composable
1920
import androidx.compose.runtime.LaunchedEffect
2021
import androidx.compose.ui.Alignment
2122
import androidx.compose.ui.Modifier
23+
import androidx.compose.ui.layout.ContentScale
24+
import androidx.compose.ui.res.painterResource
2225
import androidx.compose.ui.res.stringResource
2326
import androidx.compose.ui.tooling.preview.Preview
2427
import androidx.compose.ui.unit.dp
@@ -92,6 +95,17 @@ private fun NewTransactionSheetView(
9295

9396
BalanceHeaderView(sats = details.sats, modifier = Modifier.fillMaxWidth())
9497

98+
if (details.direction == NewTransactionSheetDirection.SENT) {
99+
Spacer(modifier = Modifier.weight(1f))
100+
101+
Image(
102+
painter = painterResource(R.drawable.check),
103+
contentDescription = null,
104+
contentScale = ContentScale.FillWidth,
105+
modifier = Modifier.fillMaxWidth().padding(horizontal = 32.dp)
106+
)
107+
}
108+
95109
Spacer(modifier = Modifier.weight(1f))
96110

97111
if (details.direction == NewTransactionSheetDirection.SENT) {
@@ -101,7 +115,7 @@ private fun NewTransactionSheetView(
101115
) {
102116
SecondaryButton(
103117
text = stringResource(R.string.wallet__send_details),
104-
onClick = onCloseClick,
118+
onClick = onCloseClick, //TODO IMPLEMENT
105119
fullWidth = false,
106120
modifier = Modifier.weight(1f)
107121
)

0 commit comments

Comments
 (0)