Skip to content

Commit

Permalink
Simplify MainScaffold content
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Sep 25, 2024
1 parent c8915b4 commit add0137
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ private fun MainScaffold(
Column {
if (navType == NavigationSuiteType.NavigationRail) tabletTopAppBar()
AppNavigationSuiteScaffold(navType, NavigationItem.entries, currentDestination, navigateToSelectedItem) {
if (navType == NavigationSuiteType.None) {
content()
} else {
if (navType == NavigationSuiteType.NavigationBar) {
Column {
Box(modifier = Modifier.weight(1.0f)) { content() }
if (navType == NavigationSuiteType.NavigationBar) HorizontalDivider()
HorizontalDivider()
}
} else {
content()
}
}
}
Expand Down

0 comments on commit add0137

Please sign in to comment.