new_select_screen #9
@ -71,12 +71,14 @@ fun RoomScreen(
|
|||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
) {
|
) {
|
||||||
Button(
|
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")
|
Text("Book")
|
||||||
}
|
}
|
||||||
Button(
|
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")
|
Text("Cancel")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user