Skip to content

Commit

Permalink
Removing when block from NavigationItems.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeroseman committed Jul 26, 2023
1 parent be7e320 commit de74866
Showing 1 changed file with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,10 @@ fun NavigationItems(navigate: (Destination) -> Unit) {
horizontalAlignment = Alignment.CenterHorizontally,
) {
items(Destination.values().toList()) { destination ->
when (destination) {
Destination.BrushExamples -> NavigationItem(destination) {
navigate(
destination
)
}
Destination.ImageExamples -> NavigationItem(destination) {
navigate(
destination
)
}
NavigationItem(destination) {
navigate(
destination
)
}
}
}
Expand All @@ -92,6 +85,6 @@ fun NavigationItem(destination: Destination, onClick: () -> Unit) {
Button(
onClick = { onClick() }
) {
Text(destination.title)
Text( destination.title )
}
}

0 comments on commit de74866

Please sign in to comment.