mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Delegate state instead of assign
This commit is contained in:
parent
41d32d4543
commit
c10ffe8ac5
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ fun ExtensionRepoScreen(
|
|||
) {
|
||||
val onBackPress = LocalBackPress.currentOrThrow
|
||||
val context = LocalContext.current
|
||||
val repoState = viewModel.repoState.collectAsState()
|
||||
val repoState by viewModel.repoState.collectAsState()
|
||||
var inputText by remember { mutableStateOf("") }
|
||||
val listState = rememberLazyListState()
|
||||
val alertDialog = LocalAlertDialog.currentOrThrow
|
||||
|
@ -72,9 +72,9 @@ fun ExtensionRepoScreen(
|
|||
)
|
||||
},
|
||||
) { innerPadding ->
|
||||
if (repoState.value is ExtensionRepoState.Loading) return@YokaiScaffold
|
||||
if (repoState is ExtensionRepoState.Loading) return@YokaiScaffold
|
||||
|
||||
val repos = (repoState.value as ExtensionRepoState.Success).repos
|
||||
val repos = (repoState as ExtensionRepoState.Success).repos
|
||||
|
||||
alertDialog.content?.let { it() }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue