From 45f7381b0e866156e98288f6eeb2ca512b730a98 Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Fri, 20 Sep 2024 09:19:53 +0200 Subject: [PATCH] Correctly name option scaffold top app bar navigation menu --- .../ui/screen/main/settings/components/OptionScaffold.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/components/OptionScaffold.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/components/OptionScaffold.kt index 784e98581..05054d13c 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/components/OptionScaffold.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/components/OptionScaffold.kt @@ -44,12 +44,12 @@ fun OptionScaffold( navigateBack: (() -> Unit)? = null, ) { Scaffold(topBar = { - val canDisplayBackButton = if (LocalNavType.current == NavigationSuiteType.NavigationBar) { + val backNavigationMenu = if (LocalNavType.current == NavigationSuiteType.NavigationBar) { TopAppBarButton.backButton(navigateBack ?: {}) } else { null } - SwissTransferTobAppBar(topAppBarTitleRes, navigationMenu = canDisplayBackButton) + SwissTransferTobAppBar(topAppBarTitleRes, navigationMenu = backNavigationMenu) }) { paddingsValue -> Column( modifier = Modifier