From 59b677aef359c5b61882429c5afc9f6407904ec2 Mon Sep 17 00:00:00 2001 From: Marco Gomiero Date: Tue, 26 Dec 2023 20:57:17 +0100 Subject: [PATCH] Hide divider in the drawer if there are no categories --- .../kotlin/com/prof18/feedflow/ui/home/components/Drawer.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sharedUI/src/commonMain/kotlin/com/prof18/feedflow/ui/home/components/Drawer.kt b/sharedUI/src/commonMain/kotlin/com/prof18/feedflow/ui/home/components/Drawer.kt index 814185fd..ee5a2c8e 100644 --- a/sharedUI/src/commonMain/kotlin/com/prof18/feedflow/ui/home/components/Drawer.kt +++ b/sharedUI/src/commonMain/kotlin/com/prof18/feedflow/ui/home/components/Drawer.kt @@ -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,