Skip to content

Commit d8c2f0f

Browse files
committed
fix: preview
1 parent 6ce2bd5 commit d8c2f0f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/receive/ReceiveQrScreen.kt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,12 +618,54 @@ private fun PreviewAutoMode() {
618618
@Preview(showSystemUi = true, name = "Spending Mode")
619619
@Composable
620620
private fun PreviewSpendingMode() {
621+
val mockChannel = ChannelDetails(
622+
channelId = "0".repeat(64),
623+
counterpartyNodeId = "0".repeat(66),
624+
fundingTxo = null,
625+
shortChannelId = null,
626+
outboundScidAlias = null,
627+
inboundScidAlias = null,
628+
channelValueSats = 1000000uL,
629+
unspendablePunishmentReserve = null,
630+
userChannelId = "0".repeat(32),
631+
feerateSatPer1000Weight = 1000u,
632+
outboundCapacityMsat = 500000000uL,
633+
inboundCapacityMsat = 500000000uL,
634+
confirmationsRequired = null,
635+
confirmations = null,
636+
isOutbound = true,
637+
isChannelReady = true,
638+
isUsable = true,
639+
isAnnounced = false,
640+
cltvExpiryDelta = null,
641+
counterpartyUnspendablePunishmentReserve = 0uL,
642+
counterpartyOutboundHtlcMinimumMsat = null,
643+
counterpartyOutboundHtlcMaximumMsat = null,
644+
counterpartyForwardingInfoFeeBaseMsat = null,
645+
counterpartyForwardingInfoFeeProportionalMillionths = null,
646+
counterpartyForwardingInfoCltvExpiryDelta = null,
647+
nextOutboundHtlcLimitMsat = 0uL,
648+
nextOutboundHtlcMinimumMsat = 0uL,
649+
forceCloseSpendDelay = null,
650+
inboundHtlcMinimumMsat = 0uL,
651+
inboundHtlcMaximumMsat = null,
652+
config = org.lightningdevkit.ldknode.ChannelConfig(
653+
forwardingFeeProportionalMillionths = 0u,
654+
forwardingFeeBaseMsat = 0u,
655+
cltvExpiryDelta = 0u,
656+
maxDustHtlcExposure = org.lightningdevkit.ldknode.MaxDustHtlcExposure.FeeRateMultiplier(0uL),
657+
forceCloseAvoidanceMaxFeeSatoshis = 0uL,
658+
acceptUnderpayingHtlcs = false
659+
)
660+
)
661+
621662
AppThemeSurface {
622663
BottomSheetPreview {
623664
ReceiveQrScreen(
624665
cjitInvoice = remember { mutableStateOf(null) },
625666
walletState = MainUiState(
626667
nodeLifecycleState = NodeLifecycleState.Running,
668+
channels = listOf(mockChannel),
627669
bolt11 = "lnbcrt500u1pn7umn7pp5x0s9lt9fwrff6rp70pz3guwnjgw97sjuv79vhx9n2ps8q6tcdehhxapqd9h8vmmfvdjjqen0wgsyqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxq"
628670
),
629671
onClickEditInvoice = {},

0 commit comments

Comments
 (0)