Skip to content

Commit

Permalink
Correctly name option scaffold top app bar navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Sep 20, 2024
1 parent d99c018 commit 45f7381
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45f7381

Please sign in to comment.