Skip to content

Commit

Permalink
Put back label in AppNavigationRail
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Sep 25, 2024
1 parent add0137 commit e4064e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ private fun AppNavigationRail(
navigationItems.forEach { navigationItem ->
NavigationRailItem(
icon = { NavigationIcon(false, navigationItem) },
label = {}, // Don't remove this seemingly useless label, it changes the icons background.
selected = currentDestination == navigationItem.destination,
onClick = { onClick(navigationItem.destination) },
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fun ReceivedEmptyFab(isMessageVisible: () -> Boolean) {
}

NewTransferFab(
modifier = Modifier.constrainAs(fab) { },
modifier = Modifier.constrainAs(fab) {},
newTransferFabType = NewTransferFabType.BOTTOM_BAR,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ private fun OptionScaffoldPreview() {
optionTitleRes = R.string.settingsThemeTitle,
enumEntries = ThemeOption.entries,
selectedSettingOptionPosition = 0,
setSelectedSettingOptionPosition = { },
navigateBack = { },
setSelectedSettingOptionPosition = {},
navigateBack = {},
)
}
}

0 comments on commit e4064e4

Please sign in to comment.