Merged in chore/move-bookingwidget-to-parallel-route (pull request #2738)

chore: Render partner-sas BookingWidget in parallel route

* Render BookingWidget in parallel route


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-09-01 12:46:42 +00:00
parent 1673006169
commit 9e3294b113
10 changed files with 45 additions and 19 deletions

View File

@@ -0,0 +1,11 @@
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget/Skeleton"
// This file is crucial for displaying a loading
// state immediately in the booking flow.
// Next doesn't recognize manually added Suspense
// boundaries during page navigation (Server->Client)
// thus making it seem as the page is frozen during
// the time it takes for `BookingWidget` to resolve.
export default function BookingWidgetLoading() {
return <BookingWidgetSkeleton />
}

View File

@@ -0,0 +1 @@
export { default } from "../page"