Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Aug 14, 2024
1 parent e697484 commit e7c50a9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,10 @@ fun AppNavigationSuiteScaffold(
navigateToSelectedItem: (MainNavigation) -> Unit,
content: @Composable () -> Unit,
) {
val isNavigationBar = layoutType == NavigationSuiteType.NavigationBar

Surface(color = SwissTransferTheme.materialColors.background) {
NavigationSuiteScaffoldLayout(
navigationSuite = {
if (isNavigationBar) {
if (layoutType == NavigationSuiteType.NavigationBar) {
AppNavigationBar(navigationItems, currentDestination, navigateToSelectedItem)
} else {
AppNavigationRail(navigationItems, currentDestination, navigateToSelectedItem)
Expand Down

0 comments on commit e7c50a9

Please sign in to comment.