Merged master into feat/SW-888-skeleton-loaders

This commit is contained in:
Anton Gunnarsson
2024-11-15 14:24:57 +00:00
24 changed files with 164 additions and 69 deletions

View File

@@ -17,7 +17,11 @@ import { Location } from "@/types/trpc/routers/hotel/locations"
const formId = "booking-widget"
export default function Form({ locations, type }: BookingWidgetFormProps) {
export default function Form({
locations,
type,
setIsOpen,
}: BookingWidgetFormProps) {
const router = useRouter()
const lang = useLang()
@@ -52,7 +56,7 @@ export default function Form({ locations, type }: BookingWidgetFormProps) {
)
})
})
setIsOpen(false)
router.push(`${bookingFlowPage}?${bookingWidgetParams.toString()}`)
}