Skip to content

Commit 13df5e0

Browse files
committed
feat: drawer icon visibility
1 parent ecfe28a commit 13df5e0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

app/src/main/java/to/bitkit/ui/ContentView.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,6 @@ private fun RootNavHost(
616616
composableWithDefaultTransitions<Routes.SettingUp> {
617617
SettingUpScreen(
618618
viewModel = transferViewModel,
619-
onCloseClick = { navController.popBackStack<Routes.TransferRoot>(inclusive = true) },
620619
onContinueClick = { navController.popBackStack<Routes.TransferRoot>(inclusive = true) },
621620
)
622621
}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ import to.bitkit.viewmodels.TransferViewModel
4646
fun SettingUpScreen(
4747
viewModel: TransferViewModel,
4848
onContinueClick: () -> Unit = {},
49-
onCloseClick: () -> Unit = {},
5049
) {
5150
val app = appViewModel ?: return
5251
val lightningSetupStep by viewModel.lightningSetupStep.collectAsState()
@@ -82,15 +81,13 @@ fun SettingUpScreen(
8281
viewModel.resetSpendingState()
8382
onContinueClick()
8483
},
85-
onCloseClick = onCloseClick,
8684
)
8785
}
8886

8987
@Composable
9088
private fun SettingUpScreen(
9189
lightningSetupStep: Int,
9290
onContinueClick: () -> Unit = {},
93-
onCloseClick: () -> Unit = {},
9491
) {
9592
val inProgress = lightningSetupStep < 3
9693
ScreenColumn(
@@ -102,7 +99,7 @@ private fun SettingUpScreen(
10299
else -> stringResource(R.string.lightning__transfer_success__nav_title)
103100
},
104101
onBackClick = null,
105-
actions = { if (inProgress) DrawerNavIcon() },
102+
actions = { DrawerNavIcon() },
106103
)
107104
Column(
108105
horizontalAlignment = Alignment.CenterHorizontally,

0 commit comments

Comments
 (0)