fixes
This commit is contained in:
parent
cbaf77a393
commit
2206fae873
@ -32,8 +32,7 @@ import ru.myitschool.work.ui.screen.auth.AuthViewModel
|
||||
|
||||
@Composable
|
||||
fun RoomScreen(
|
||||
roomId: Int,
|
||||
viewModel: AuthViewModel = viewModel(),
|
||||
viewModel: RoomViewModel = viewModel(),
|
||||
roomId: Int,
|
||||
navController: NavController
|
||||
) {
|
||||
@ -62,7 +61,7 @@ fun RoomScreen(
|
||||
)
|
||||
Spacer(modifier = Modifier.size(12.dp))
|
||||
LazyColumn {
|
||||
itemsIndexed(currentState.data.data.entries.toList()) { index, item ->
|
||||
itemsIndexed(currentState.data.entries.toList()) { index, item ->
|
||||
DayCard(item.key, item.value.toString(), index)
|
||||
}
|
||||
}
|
||||
@ -100,7 +99,7 @@ fun RoomScreen(
|
||||
)
|
||||
}
|
||||
Button(
|
||||
onClick = { viewModel.onIntent(RoomIntent.Refresh) }
|
||||
onClick = { viewModel.onIntent(RoomIntent.Refresh(roomId)) }
|
||||
) {
|
||||
Text("Refresh")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user