File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/src/main/java/to/bitkit/ui/screens/wallets/activity/components Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ fun ActivityRow(
6868 is Activity .Lightning -> null
6969 is Activity .Onchain -> item.v1.confirmed
7070 }
71+ val isTransfer = when (item) {
72+ is Activity .Lightning -> false
73+ is Activity .Onchain -> item.v1.isTransfer
74+ }
75+
7176 Row (
7277 verticalAlignment = Alignment .CenterVertically ,
7378 modifier = Modifier
@@ -85,7 +90,7 @@ fun ActivityRow(
8590 txType = txType,
8691 isLightning = isLightning,
8792 status = status,
88- confirmed = confirmed,
93+ isTransfer = isTransfer
8994 )
9095 val subtitleText = when (item) {
9196 is Activity .Lightning -> item.v1.message.ifEmpty { formattedTime(timestamp) }
@@ -117,9 +122,10 @@ private fun TransactionStatusText(
117122 txType : PaymentType ,
118123 isLightning : Boolean ,
119124 status : PaymentState ? ,
120- confirmed : Boolean? ,
125+ isTransfer : Boolean ,
121126) {
122127 when {
128+ isTransfer -> BodyMSB (text = stringResource(R .string.wallet__activity_transfer))
123129 isLightning -> {
124130 when (txType) {
125131 PaymentType .SENT -> when (status) {
You can’t perform that action at this time.
0 commit comments