refactor: add a Modifier parameter to LobstersApp

This commit is contained in:
Harsh Shandilya 2022-11-19 18:48:47 +05:30
parent 960222c489
commit e6ebb10bff
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -54,13 +54,13 @@ import dev.msfjarvis.claw.common.urllauncher.UrlLauncher
import dev.msfjarvis.claw.common.user.UserProfile
import kotlinx.coroutines.launch
@Suppress("ModifierMissing") // Top-level composable, will never have a modifier supplied.
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun LobstersApp(
urlLauncher: UrlLauncher,
htmlConverter: HTMLConverter,
setWebUri: (String?) -> Unit,
modifier: Modifier = Modifier,
viewModel: ClawViewModel = injectedViewModel(),
) {
val systemUiController = rememberSystemUiController()
@ -156,6 +156,7 @@ fun LobstersApp(
isVisible = navItems.any { it.route == currentDestination },
)
},
modifier = modifier,
) { paddingValues ->
NavHost(
navController = navController,