This commit is contained in:
student-i-nikolaevskiy 2026-02-25 18:20:21 +03:00
parent 2206fae873
commit 685ec12f06

View File

@ -71,12 +71,14 @@ fun RoomScreen(
.fillMaxWidth()
) {
Button(
onClick = { viewModel.onIntent(RoomIntent.Booking(1488, "1488")) }
onClick = { viewModel.onIntent(RoomIntent.Booking(roomId, currentState.data.keys.toList()[0])) },
shape = RoundedCornerShape(64, 0, 0, 64)
) {
Text("Book")
}
Button(
onClick = { viewModel.onIntent(RoomIntent.UnBook(1488, "1488")) }
onClick = { viewModel.onIntent(RoomIntent.UnBook(roomId, currentState.data.keys.toList()[0])) },
shape = RoundedCornerShape(0, 64, 64, 0)
) {
Text("Cancel")
}