common: refactor comments page to accept modifiers

This commit is contained in:
Harsh Shandilya 2021-11-15 23:14:15 +05:30
parent 520430592c
commit dd621d90a5
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 13 additions and 15 deletions

View file

@ -120,7 +120,7 @@ fun LobstersApp(
modifier = Modifier.navigationBarsPadding(),
)
},
) { paddingValues ->
) {
NavHost(navController, startDestination = Destinations.Hottest) {
composable(Destinations.Hottest) {
setWebUri("https://lobste.rs/")
@ -139,7 +139,7 @@ fun LobstersApp(
CommentsPage(
postId = postId,
getDetails = viewModel::getPostComments,
paddingValues = paddingValues,
modifier = Modifier.navigationBarsPadding(),
)
}
}