mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Fix focus on recommended
This commit is contained in:
parent
f8a2bb1545
commit
5b1c46f0b7
2 changed files with 2 additions and 2 deletions
|
|
@ -223,7 +223,7 @@ fun RecommendedMovie(
|
||||||
viewModel.init()
|
viewModel.init()
|
||||||
}
|
}
|
||||||
val loading by viewModel.loading.observeAsState(LoadingState.Loading)
|
val loading by viewModel.loading.observeAsState(LoadingState.Loading)
|
||||||
val rows by viewModel.rows.collectAsState(listOf())
|
val rows by viewModel.rows.collectAsState()
|
||||||
|
|
||||||
when (val state = loading) {
|
when (val state = loading) {
|
||||||
is LoadingState.Error -> ErrorMessage(state)
|
is LoadingState.Error -> ErrorMessage(state)
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ fun RecommendedTvShow(
|
||||||
}
|
}
|
||||||
|
|
||||||
val loading by viewModel.loading.observeAsState(LoadingState.Loading)
|
val loading by viewModel.loading.observeAsState(LoadingState.Loading)
|
||||||
val rows by viewModel.rows.collectAsState(listOf())
|
val rows by viewModel.rows.collectAsState()
|
||||||
|
|
||||||
when (val state = loading) {
|
when (val state = loading) {
|
||||||
is LoadingState.Error -> ErrorMessage(state)
|
is LoadingState.Error -> ErrorMessage(state)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue