mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
android: remove hard-coded 'hottest' references
This commit is contained in:
parent
9d538b4600
commit
e1e049ebdb
1 changed files with 3 additions and 3 deletions
|
@ -109,14 +109,14 @@ fun LobstersApp(
|
||||||
topBar = { ClawAppBar(modifier = Modifier.statusBarsPadding()) },
|
topBar = { ClawAppBar(modifier = Modifier.statusBarsPadding()) },
|
||||||
floatingActionButton = {
|
floatingActionButton = {
|
||||||
ClawFab(
|
ClawFab(
|
||||||
isFabVisible = isFabVisible && currentDestination == "hottest",
|
isFabVisible = isFabVisible && currentDestination == Destinations.Hottest,
|
||||||
listState = listState,
|
listState = listState,
|
||||||
modifier = Modifier.navigationBarsPadding(),
|
modifier = Modifier.navigationBarsPadding(),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
) { paddingValues ->
|
) { paddingValues ->
|
||||||
NavHost(navController, startDestination = "hottest") {
|
NavHost(navController, startDestination = Destinations.Hottest) {
|
||||||
composable("hottest") {
|
composable(Destinations.Hottest) {
|
||||||
HottestPosts(
|
HottestPosts(
|
||||||
items,
|
items,
|
||||||
listState,
|
listState,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue