Skip to content

Commit 779fb3e

Browse files
committed
chore: lint
1 parent 03b09ff commit 779fb3e

File tree

4 files changed

+42
-25
lines changed

4 files changed

+42
-25
lines changed

app/src/main/java/to/bitkit/ui/components/Text.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import androidx.compose.runtime.Composable
66
import androidx.compose.ui.Modifier
77
import androidx.compose.ui.graphics.Color
88
import androidx.compose.ui.text.AnnotatedString
9-
import androidx.compose.ui.text.TextStyle
109
import androidx.compose.ui.text.font.FontWeight
1110
import androidx.compose.ui.text.style.TextAlign
1211
import androidx.compose.ui.text.style.TextOverflow
@@ -15,7 +14,6 @@ import androidx.compose.ui.unit.TextUnit
1514
import androidx.compose.ui.unit.sp
1615
import to.bitkit.ui.theme.AppTextStyles
1716
import to.bitkit.ui.theme.Colors
18-
import to.bitkit.ui.theme.InterFontFamily
1917

2018
@Composable
2119
fun Display(

app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityExploreScreen.kt

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ private fun LightningDetails(
197197
modifier = Modifier.clickableAlpha(
198198
onClick = copyToClipboard(preimage) {
199199
onCopy(preimage)
200-
}),
200+
}
201+
),
201202
)
202203
}
203204
Section(
@@ -206,15 +207,17 @@ private fun LightningDetails(
206207
modifier = Modifier.clickableAlpha(
207208
onClick = copyToClipboard(paymentHash) {
208209
onCopy(paymentHash)
209-
}),
210+
}
211+
),
210212
)
211213
Section(
212214
title = stringResource(R.string.wallet__activity_invoice),
213215
value = invoice,
214216
modifier = Modifier.clickableAlpha(
215217
onClick = copyToClipboard(invoice) {
216218
onCopy(invoice)
217-
}),
219+
}
220+
),
218221
)
219222
}
220223

@@ -227,12 +230,16 @@ private fun ColumnScope.OnchainDetails(
227230
) {
228231
val txId = onchain.v1.txId
229232
Section(
230-
title = stringResource(R.string.wallet__activity_tx_id), value = txId, modifier = Modifier
233+
title = stringResource(R.string.wallet__activity_tx_id),
234+
value = txId,
235+
modifier = Modifier
231236
.clickableAlpha(
232237
onClick = copyToClipboard(txId) {
233238
onCopy(txId)
234-
})
235-
.testTag("TXID"))
239+
}
240+
)
241+
.testTag("TXID")
242+
)
236243
if (txDetails != null) {
237244
Section(
238245
title = localizedPlural(R.string.wallet__activity_input, mapOf("count" to txDetails.vin.size)),
@@ -274,16 +281,19 @@ private fun ColumnScope.OnchainDetails(
274281
val isRbf = onchain.boostType() == BoostType.RBF
275282
Section(
276283
title = stringResource(
277-
if (isRbf) R.string.wallet__activity_boosted_rbf else R.string.wallet__activity_boosted_cpfp
278-
).replace("{num}", "${index + 1}"), valueContent = {
279-
Column {
280-
BodySSB(text = parent, maxLines = 1, overflow = TextOverflow.MiddleEllipsis)
281-
}
282-
}, modifier = Modifier
284+
if (isRbf) R.string.wallet__activity_boosted_rbf else R.string.wallet__activity_boosted_cpfp
285+
).replace("{num}", "${index + 1}"),
286+
valueContent = {
287+
Column {
288+
BodySSB(text = parent, maxLines = 1, overflow = TextOverflow.MiddleEllipsis)
289+
}
290+
},
291+
modifier = Modifier
283292
.clickableAlpha {
284293
onClickParent(parent)
285294
}
286-
.testTag(if (isRbf) "RBFBoosted" else "CPFPBoosted"))
295+
.testTag(if (isRbf) "RBFBoosted" else "CPFPBoosted")
296+
)
287297
}
288298
}
289299

app/src/main/java/to/bitkit/ui/sheets/BoostTransactionSheet.kt

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ fun BoostTransactionContent(
177177
@Composable
178178
private fun LoadingState() {
179179
Column(
180-
horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.padding(32.dp)
180+
horizontalAlignment = Alignment.CenterHorizontally,
181+
modifier = Modifier.padding(32.dp)
181182
) {
182183
CircularProgressIndicator(
183-
color = Colors.Yellow, modifier = Modifier
184+
color = Colors.Yellow,
185+
modifier = Modifier
184186
.size(32.dp)
185187
.testTag(BoostTransactionTestTags.LOADING_INDICATOR)
186188
)
@@ -200,7 +202,8 @@ private fun DefaultModeContent(
200202
modifier = Modifier
201203
.fillMaxWidth()
202204
.clickableAlpha { onClickEdit() }
203-
.testTag(BoostTransactionTestTags.EDIT_FEE_ROW)) {
205+
.testTag(BoostTransactionTestTags.EDIT_FEE_ROW)
206+
) {
204207
Image(
205208
painter = painterResource(R.drawable.ic_timer_alt_yellow),
206209
contentDescription = null,
@@ -228,7 +231,8 @@ private fun DefaultModeContent(
228231
horizontalAlignment = Alignment.End,
229232
) {
230233
Row(
231-
verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(4.dp)
234+
verticalAlignment = Alignment.CenterVertically,
235+
horizontalArrangement = Arrangement.spacedBy(4.dp)
232236
) {
233237
val feeText =
234238
rememberMoneyText(sats = uiState.totalFeeSats.toLong())?.withAccent(defaultColor = Colors.White)
@@ -250,7 +254,8 @@ private fun DefaultModeContent(
250254
}
251255

252256
val feeTextSecondary = rememberMoneyText(
253-
sats = uiState.totalFeeSats.toLong(), reversed = true
257+
sats = uiState.totalFeeSats.toLong(),
258+
reversed = true
254259
)?.withAccent(defaultColor = Colors.White64)?.toString().orEmpty()
255260

256261
BodySSB(
@@ -288,7 +293,8 @@ private fun CustomModeContent(
288293
modifier = Modifier.testTag(BoostTransactionTestTags.CUSTOM_MODE_CONTENT),
289294
) {
290295
Row(
291-
modifier = Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically
296+
modifier = Modifier.fillMaxWidth(),
297+
verticalAlignment = Alignment.CenterVertically
292298
) {
293299
QuantityButton(
294300
icon = painterResource(R.drawable.ic_minus),
@@ -319,7 +325,8 @@ private fun CustomModeContent(
319325
horizontalArrangement = Arrangement.spacedBy(8.dp)
320326
) {
321327
val feeTextSecondary = rememberMoneyText(
322-
sats = uiState.totalFeeSats.toLong(), reversed = true
328+
sats = uiState.totalFeeSats.toLong(),
329+
reversed = true
323330
)?.withAccent(defaultColor = Colors.White64)?.toString().orEmpty()
324331

325332
BodySSB(
@@ -390,12 +397,15 @@ fun QuantityButton(
390397
haptic.performHapticFeedback(HapticFeedbackType.TextHandleMove)
391398
onClick()
392399
}
393-
}, enabled = enabled, colors = IconButtonDefaults.iconButtonColors(
400+
},
401+
enabled = enabled,
402+
colors = IconButtonDefaults.iconButtonColors(
394403
containerColor = backgroundColor,
395404
contentColor = iconColor,
396405
disabledContainerColor = Colors.Gray3,
397406
disabledContentColor = Colors.Gray1
398-
), modifier = modifier
407+
),
408+
modifier = modifier
399409
.size(40.dp)
400410
.clip(CircleShape)
401411
) {

app/src/main/java/to/bitkit/ui/theme/Type.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import androidx.compose.ui.text.TextStyle
55
import androidx.compose.ui.text.font.Font
66
import androidx.compose.ui.text.font.FontFamily
77
import androidx.compose.ui.text.font.FontWeight
8-
import androidx.compose.ui.text.style.TextAlign
98
import androidx.compose.ui.unit.sp
109
import to.bitkit.R
1110

0 commit comments

Comments
 (0)