From e7c50a9729b3609be4d3e13c67189cdc09f14987 Mon Sep 17 00:00:00 2001 From: Abdourahamane Boinaidi Date: Wed, 14 Aug 2024 15:18:25 +0200 Subject: [PATCH] Refactor --- .../ui/screen/main/components/AppNavigationSuiteScaffold.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/components/AppNavigationSuiteScaffold.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/components/AppNavigationSuiteScaffold.kt index ce5ef376f..4a4baf198 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/components/AppNavigationSuiteScaffold.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/components/AppNavigationSuiteScaffold.kt @@ -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)