Skip to content

Commit

Permalink
Highlight the current screen in bottombar (#531)
Browse files Browse the repository at this point in the history
Signed-off-by: IronVeil <[email protected]>
  • Loading branch information
ironveil authored Jun 11, 2023
1 parent d8c65f7 commit a7607f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/java/com/jerboa/ui/components/common/AppBars.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fun BottomAppBarAll(
)
}
},
selected = false,
selected = screen == "home",
onClick = {
navController.navigate("home")
},
Expand All @@ -144,7 +144,7 @@ fun BottomAppBarAll(
onClick = {
navController.navigate("communityList")
},
selected = false,
selected = screen == "communityList",
)
NavigationBarItem(
icon = {
Expand All @@ -164,7 +164,7 @@ fun BottomAppBarAll(
onClick = {
onClickInbox()
},
selected = false,
selected = screen == "inbox",
)
NavigationBarItem(
icon = {
Expand All @@ -184,7 +184,7 @@ fun BottomAppBarAll(
onClick = {
onClickSaved()
},
selected = false,
selected = screen == "saved",
)
NavigationBarItem(
icon = {
Expand All @@ -202,7 +202,7 @@ fun BottomAppBarAll(
}
},
onClick = onClickProfile,
selected = false,
selected = screen == "saved",
)
}
}
Expand Down

0 comments on commit a7607f1

Please sign in to comment.