@@ -69,9 +69,6 @@ import to.bitkit.ui.components.Tooltip
6969import to.bitkit.ui.components.VerticalSpacer
7070import to.bitkit.ui.scaffold.SheetTopBar
7171import to.bitkit.ui.screens.wallets.activity.components.CustomTabRowWithSpacing
72- import to.bitkit.ui.screens.wallets.receive.ReceiveTab.AUTO
73- import to.bitkit.ui.screens.wallets.receive.ReceiveTab.SAVINGS
74- import to.bitkit.ui.screens.wallets.receive.ReceiveTab.SPENDING
7572import to.bitkit.ui.shared.effects.SetMaxBrightness
7673import to.bitkit.ui.shared.modifiers.sheetHeight
7774import to.bitkit.ui.shared.util.gradientBackground
@@ -83,6 +80,7 @@ import to.bitkit.ui.theme.Colors
8380import to.bitkit.ui.utils.withAccent
8481import to.bitkit.viewmodels.MainUiState
8582
83+ @Suppress(" CyclomaticComplexMethod" )
8684@OptIn(FlowPreview ::class )
8785@Composable
8886fun ReceiveQrScreen (
@@ -188,9 +186,9 @@ fun ReceiveQrScreen(
188186 tabs = visibleTabs,
189187 currentTabIndex = visibleTabs.indexOf(selectedTab),
190188 selectedColor = when (selectedTab) {
191- SAVINGS -> Colors .Brand
192- AUTO -> Colors .White
193- SPENDING -> Colors .Purple
189+ ReceiveTab . SAVINGS -> Colors .Brand
190+ ReceiveTab . AUTO -> Colors .White
191+ ReceiveTab . SPENDING -> Colors .Purple
194192 },
195193 onTabChange = { tab ->
196194 haptic.performHapticFeedback(HapticFeedbackType .TextHandleMove )
@@ -673,8 +671,11 @@ private fun PreviewAutoMode() {
673671 nodeLifecycleState = NodeLifecycleState .Running ,
674672 channels = listOf (mockChannel),
675673 onchainAddress = " bcrt1qfserxgtuesul4m9zva56wzk849yf9l8rk4qy0l" ,
676- bolt11 = " lnbcrt500u1pn7umn7pp5x0s9lt9fwrff6rp70pz3guwnjgw97sjuv79vhx9n2ps8q6tcdehhxapqd9h8vmmfvdjjqen0wgsyqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxq" ,
677- bip21 = " bitcoin:bcrt1qfserxgtuesul4m9zva56wzk849yf9l8rk4qy0l?lightning=lnbcrt500u1pn7umn7pp5x0s9lt9fwrff6rp70pz3guwnjgw97sjuv79..."
674+ bolt11 = " lnbcrt500u1pn7umn7pp5x0s9lt9fwrff6rp70pz3guwnjgw97sjuv79vhx9n2ps8q6tcdehhxapqd9h8vmmfv" +
675+ " djjqen0wgsyqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxq" ,
676+ bip21 = " bitcoin:bcrt1qfserxgtuesul4m9zva56wzk849yf9l8rk4qy0l?lightning=" +
677+ " lnbcrt500u1pn7umn7pp5x0s9lt9fwrff6rp70pz3guwnjgw97sjuv79vhx9n2ps8q6tcdehhxapqd9h8vmmfv" +
678+ " djjqen0wgsyqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxq" ,
678679 ),
679680 onClickEditInvoice = {},
680681 modifier = Modifier .sheetHeight(),
@@ -737,7 +738,8 @@ private fun PreviewSpendingMode() {
737738 walletState = MainUiState (
738739 nodeLifecycleState = NodeLifecycleState .Running ,
739740 channels = listOf (mockChannel),
740- bolt11 = " lnbcrt500u1pn7umn7pp5x0s9lt9fwrff6rp70pz3guwnjgw97sjuv79vhx9n2ps8q6tcdehhxapqd9h8vmmfvdjjqen0wgsyqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxq"
741+ bolt11 = " lnbcrt500u1pn7umn7pp5x0s9lt9fwrff6rp70pz3guwnjgw97sjuv79vhx9n2ps8q6tcdehhxapqd9h8vmmfv" +
742+ " djjqen0wgsyqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxqcrqvpsxq"
741743 ),
742744 onClickEditInvoice = {},
743745 modifier = Modifier .sheetHeight(),
0 commit comments