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

@@ -36,6 +36,7 @@ type LangParams = {
type RootLayoutProps = {
children: React.ReactNode
params: Promise<LangParams>
bookingwidget: React.ReactNode
}
export default async function RootLayout(props: RootLayoutProps) {
@@ -90,6 +91,7 @@ export default async function RootLayout(props: RootLayoutProps) {
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
<h1>SAS</h1>
</header>
{props.bookingwidget}
<main>{children}</main>
</BookingFlowTrackingProvider>
</BookingFlowContextProvider>