Skip to content

Commit 11bc225

Browse files
committed
chore: small screen preview
1 parent 11e73a8 commit 11bc225

File tree

1 file changed

+154
-2
lines changed

1 file changed

+154
-2
lines changed

app/src/main/java/to/bitkit/ui/screens/transfer/SpendingConfirmScreen.kt

Lines changed: 154 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private fun Content(
222222

223223
}
224224

225-
@Preview(showSystemUi = true, showBackground = true)
225+
@Preview(showSystemUi = true, showBackground = true, name = "Normal screen - Default")
226226
@Composable
227227
private fun Preview() {
228228
AppThemeSurface {
@@ -298,7 +298,7 @@ private fun Preview() {
298298
}
299299
}
300300

301-
@Preview(showSystemUi = true, showBackground = true)
301+
@Preview(showSystemUi = true, showBackground = true, name = "Normal screen - Advanced")
302302
@Composable
303303
private fun Preview2() {
304304
AppThemeSurface {
@@ -373,3 +373,155 @@ private fun Preview2() {
373373
)
374374
}
375375
}
376+
377+
@Preview(showSystemUi = true, showBackground = true, heightDp = 700, name = "Small screen - Normal")
378+
@Composable
379+
private fun Preview3() {
380+
AppThemeSurface {
381+
Content(
382+
onBackClick = {},
383+
onCloseClick = {},
384+
onLearnMoreClick = {},
385+
onAdvancedClick = {},
386+
onConfirm = {},
387+
onUseDefaultLspBalanceClick = {},
388+
onTransferToSpendingConfirm = {},
389+
order = IBtOrder(
390+
id = "order_7e6f3b7c-486a-4f5a-8b1e-2c9d7f0a8b9d",
391+
state = BtOrderState.CREATED,
392+
state2 = BtOrderState2.CREATED,
393+
feeSat = 1000UL,
394+
networkFeeSat = 250UL,
395+
serviceFeeSat = 750UL,
396+
lspBalanceSat = 2000000UL,
397+
clientBalanceSat = 500000UL,
398+
zeroConf = false,
399+
zeroReserve = true,
400+
clientNodeId = null,
401+
channelExpiryWeeks = 8u,
402+
channelExpiresAt = "2025-09-22T08:29:03Z",
403+
orderExpiresAt = "2025-07-29T08:29:03Z",
404+
channel = null,
405+
lspNode = ILspNode(
406+
alias = "Bitkit LSP",
407+
pubkey = "02f12451995802149b1855a7948305763328e9304337b51e45e7f1b637956424e8",
408+
connectionStrings = listOf("[email protected]:9735"),
409+
readonly = null
410+
),
411+
lnurl = null,
412+
payment = IBtPayment(
413+
state = BtPaymentState.CREATED,
414+
state2 = BtPaymentState2.CREATED,
415+
paidSat = 0UL,
416+
bolt11Invoice = IBtBolt11Invoice(
417+
request = "lnmock",
418+
state = BtBolt11InvoiceState.PENDING,
419+
expiresAt = "2025-07-28T12:00:00Z",
420+
updatedAt = "2025-07-28T08:30:00Z"
421+
),
422+
onchain = IBtOnchainTransactions(
423+
address = "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
424+
confirmedSat = 0UL,
425+
requiredConfirmations = 1u,
426+
transactions = listOf(
427+
IBtOnchainTransaction(
428+
amountSat = 50000UL,
429+
txId = "f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16",
430+
vout = 0u,
431+
blockHeight = null,
432+
blockConfirmationCount = 0u,
433+
feeRateSatPerVbyte = 12.5,
434+
confirmed = false,
435+
suspicious0ConfReason = ""
436+
)
437+
)
438+
),
439+
isManuallyPaid = null,
440+
manualRefunds = null
441+
),
442+
couponCode = null,
443+
source = null,
444+
discount = null,
445+
updatedAt = "2025-07-28T08:29:03Z",
446+
createdAt = "2025-07-28T08:29:03Z"
447+
),
448+
isAdvanced = false
449+
)
450+
}
451+
}
452+
453+
@Preview(showSystemUi = true, showBackground = true, heightDp = 700, name = "Small screen - Advanced")
454+
@Composable
455+
private fun Preview4() {
456+
AppThemeSurface {
457+
Content(
458+
onBackClick = {},
459+
onCloseClick = {},
460+
onLearnMoreClick = {},
461+
onAdvancedClick = {},
462+
onConfirm = {},
463+
onUseDefaultLspBalanceClick = {},
464+
onTransferToSpendingConfirm = {},
465+
order = IBtOrder(
466+
id = "order_7e6f3b7c-486a-4f5a-8b1e-2c9d7f0a8b9d",
467+
state = BtOrderState.CREATED,
468+
state2 = BtOrderState2.CREATED,
469+
feeSat = 1000UL,
470+
networkFeeSat = 250UL,
471+
serviceFeeSat = 750UL,
472+
lspBalanceSat = 2000000UL,
473+
clientBalanceSat = 500000UL,
474+
zeroConf = false,
475+
zeroReserve = true,
476+
clientNodeId = null,
477+
channelExpiryWeeks = 8u,
478+
channelExpiresAt = "2025-09-22T08:29:03Z",
479+
orderExpiresAt = "2025-07-29T08:29:03Z",
480+
channel = null,
481+
lspNode = ILspNode(
482+
alias = "Bitkit LSP",
483+
pubkey = "02f12451995802149b1855a7948305763328e9304337b51e45e7f1b637956424e8",
484+
connectionStrings = listOf("[email protected]:9735"),
485+
readonly = null
486+
),
487+
lnurl = null,
488+
payment = IBtPayment(
489+
state = BtPaymentState.CREATED,
490+
state2 = BtPaymentState2.CREATED,
491+
paidSat = 0UL,
492+
bolt11Invoice = IBtBolt11Invoice(
493+
request = "lnmock",
494+
state = BtBolt11InvoiceState.PENDING,
495+
expiresAt = "2025-07-28T12:00:00Z",
496+
updatedAt = "2025-07-28T08:30:00Z"
497+
),
498+
onchain = IBtOnchainTransactions(
499+
address = "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
500+
confirmedSat = 0UL,
501+
requiredConfirmations = 1u,
502+
transactions = listOf(
503+
IBtOnchainTransaction(
504+
amountSat = 50000UL,
505+
txId = "f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16",
506+
vout = 0u,
507+
blockHeight = null,
508+
blockConfirmationCount = 0u,
509+
feeRateSatPerVbyte = 12.5,
510+
confirmed = false,
511+
suspicious0ConfReason = ""
512+
)
513+
)
514+
),
515+
isManuallyPaid = null,
516+
manualRefunds = null
517+
),
518+
couponCode = null,
519+
source = null,
520+
discount = null,
521+
updatedAt = "2025-07-28T08:29:03Z",
522+
createdAt = "2025-07-28T08:29:03Z"
523+
),
524+
isAdvanced = true
525+
)
526+
}
527+
}

0 commit comments

Comments
 (0)