Skip to content

Commit

Permalink
Hide divider in the drawer if there are no categories
Browse files Browse the repository at this point in the history
  • Loading branch information
prof18 committed Dec 26, 2023
1 parent 0501cbd commit 59b677a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,11 @@ fun Drawer(
)
}

if (navDrawerState.categories.isNotEmpty() || navDrawerState.feedSourcesByCategory.isNotEmpty()) {
if (navDrawerState.categories.isNotEmpty()) {
item {
DrawerDivider()
}
}

if (navDrawerState.categories.isNotEmpty()) {
item {
DrawerCategoriesSection(
navDrawerState = navDrawerState,
Expand Down

0 comments on commit 59b677a

Please sign in to comment.