mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-25 18:38:23 +01:00
Fix missing appbar when statistics are loading
This commit is contained in:
parent
ce81b76150
commit
8fae92034e
@ -24,11 +24,6 @@ class StatsScreen : Screen {
|
||||
val screenModel = rememberScreenModel { StatsScreenModel() }
|
||||
val state by screenModel.state.collectAsState()
|
||||
|
||||
if (state is StatsScreenState.Loading) {
|
||||
LoadingScreen()
|
||||
return
|
||||
}
|
||||
|
||||
Scaffold(
|
||||
topBar = { scrollBehavior ->
|
||||
AppBar(
|
||||
@ -38,6 +33,11 @@ class StatsScreen : Screen {
|
||||
)
|
||||
},
|
||||
) { paddingValues ->
|
||||
if (state is StatsScreenState.Loading) {
|
||||
LoadingScreen()
|
||||
return@Scaffold
|
||||
}
|
||||
|
||||
StatsScreenContent(
|
||||
state = state as StatsScreenState.Success,
|
||||
paddingValues = paddingValues,
|
||||
|
Loading…
Reference in New Issue
Block a user