Skip to content

Commit

Permalink
fix: Hide navigation suite if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Aug 14, 2024
1 parent 0e1de5c commit b73a041
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@ fun AppNavigationSuiteScaffold(
Surface(color = SwissTransferTheme.materialColors.background) {
NavigationSuiteScaffoldLayout(
navigationSuite = {
if (layoutType == NavigationSuiteType.NavigationBar) {
AppNavigationBar(navigationItems, currentDestination, navigateToSelectedItem)
} else {
AppNavigationRail(navigationItems, currentDestination, navigateToSelectedItem)
when (layoutType) {
NavigationSuiteType.None -> Unit
NavigationSuiteType.NavigationBar -> {
AppNavigationBar(navigationItems, currentDestination, navigateToSelectedItem)
}
else -> {
AppNavigationRail(navigationItems, currentDestination, navigateToSelectedItem)
}
}
},
layoutType = layoutType,
Expand Down

0 comments on commit b73a041

Please sign in to comment.