guest details: improve room stays ui
This commit is contained in:
@@ -273,15 +273,6 @@ class MainActivity : ComponentActivity() {
|
||||
bookingId = booking.id.orEmpty()
|
||||
)
|
||||
},
|
||||
onExtendBooking = { booking ->
|
||||
route.value = AppRoute.BookingExpectedDates(
|
||||
propertyId = currentRoute.propertyId,
|
||||
bookingId = booking.id.orEmpty(),
|
||||
status = booking.status,
|
||||
expectedCheckInAt = booking.expectedCheckInAt,
|
||||
expectedCheckOutAt = booking.expectedCheckOutAt
|
||||
)
|
||||
},
|
||||
onOpenBookingDetails = { booking ->
|
||||
route.value = AppRoute.BookingDetailsTabs(
|
||||
propertyId = currentRoute.propertyId,
|
||||
@@ -413,6 +404,22 @@ class MainActivity : ComponentActivity() {
|
||||
currentRoute.propertyId,
|
||||
selectedPropertyName.value ?: "Property"
|
||||
)
|
||||
},
|
||||
onEditCheckout = { expectedCheckInAt, expectedCheckOutAt ->
|
||||
route.value = AppRoute.BookingExpectedDates(
|
||||
propertyId = currentRoute.propertyId,
|
||||
bookingId = currentRoute.bookingId,
|
||||
status = "CHECKED_IN",
|
||||
expectedCheckInAt = expectedCheckInAt,
|
||||
expectedCheckOutAt = expectedCheckOutAt
|
||||
)
|
||||
},
|
||||
onEditSignature = { guestId ->
|
||||
route.value = AppRoute.GuestSignature(
|
||||
currentRoute.propertyId,
|
||||
currentRoute.bookingId,
|
||||
guestId
|
||||
)
|
||||
}
|
||||
)
|
||||
is AppRoute.Rooms -> RoomsScreen(
|
||||
|
||||
Reference in New Issue
Block a user