create booking : improve form and ui further

This commit is contained in:
androidlover5842
2026-01-29 09:39:17 +05:30
parent 869e59aaac
commit 799c0b44b9
7 changed files with 172 additions and 27 deletions

View File

@@ -140,7 +140,12 @@ class MainActivity : ComponentActivity() {
)
is AppRoute.CreateBooking -> BookingCreateScreen(
propertyId = currentRoute.propertyId,
onBack = { route.value = AppRoute.Home },
onBack = {
route.value = AppRoute.ActiveRoomStays(
currentRoute.propertyId,
selectedPropertyName.value ?: "Property"
)
},
onCreated = { response, guest, phone ->
val bookingId = response.id.orEmpty()
val guestId = (guest?.id ?: response.guestId).orEmpty()