fix(navigation): show bottom bar on all screens except ConnectScreen

This commit is contained in:
Hy4ri
2026-06-19 18:31:37 +03:00
parent 2e56e2d9da
commit 0cdf8fd779
@@ -193,7 +193,7 @@ fun MainNavigation() {
NavigationController.updatePrimaryScreens(bottomNavKeys) NavigationController.updatePrimaryScreens(bottomNavKeys)
} }
val isPrimaryScreen = currentScreen in bottomNavKeys val showBottomBar = currentScreen != ConnectScreen
val gesturesEnabled = currentScreen in DRAWER_GESTURE_SCREENS val gesturesEnabled = currentScreen in DRAWER_GESTURE_SCREENS
val openDrawer = { scope.launch { drawerState.open() } } val openDrawer = { scope.launch { drawerState.open() } }
@@ -293,7 +293,7 @@ fun MainNavigation() {
Scaffold( Scaffold(
contentWindowInsets = WindowInsets.navigationBars, contentWindowInsets = WindowInsets.navigationBars,
bottomBar = { bottomBar = {
if (isPrimaryScreen) { if (showBottomBar) {
NavigationBar { NavigationBar {
bottomNavItems.forEach { item -> bottomNavItems.forEach { item ->
NavigationBarItem( NavigationBarItem(