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

@@ -1,17 +1,22 @@
package ru.fincode.tsudesk.feature.schedule.presentation.screen
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
@Composable
fun ScheduleRoute(
viewModel: ScheduleViewModel = hiltViewModel()
modifier: Modifier = Modifier,
// onOpenDetails: (lessonId: Long) -> Unit,
viewModel: ScheduleViewModel = hiltViewModel(),
) {
val state = viewModel.state.collectAsStateWithLifecycle().value
val state by viewModel.state.collectAsStateWithLifecycle()
ScheduleScreen(
state = state,
onIntent = viewModel::onIntent
onIntent = viewModel::onIntent,
modifier = modifier
)
}