Impl base structure of bottom-navigation

This commit is contained in:
Shcherbatykh Oleg
2026-02-24 19:00:27 +03:00
parent 4794b0e185
commit 37c926ac77
19 changed files with 345 additions and 47 deletions

View File

@@ -12,12 +12,14 @@ fun SplashRoute(
viewModel: SplashViewModel = hiltViewModel()
) {
val state = viewModel.state.collectAsStateWithLifecycle().value
LaunchedEffect(Unit) {
LaunchedEffect(viewModel) {
viewModel.effects.collect { effect ->
when (effect) {
SplashEffect.OpenMain -> onFinish()
}
}
}
SplashScreen(state = state)
}