Merged in feat/sw-3604-webviews (pull request #3123)
feat(SW-3604): wrap mystay with bookingflowconfig * feat(SW-3604): wrap mystay with bookingflowconfig Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
import { BookingFlowConfig } from "@scandic-hotels/booking-flow/BookingFlowConfig"
|
||||
|
||||
import { bookingFlowConfig } from "@/constants/bookingFlowConfig"
|
||||
|
||||
import MyStay from "@/components/HotelReservation/MyStay"
|
||||
import { setLang } from "@/i18n/serverContext"
|
||||
|
||||
@@ -18,9 +14,9 @@ export default async function MyStayPage(
|
||||
const refId = searchParams.RefId
|
||||
|
||||
return (
|
||||
<BookingFlowConfig config={bookingFlowConfig}>
|
||||
<>
|
||||
<MyStay refId={refId} lang={params.lang} />
|
||||
<Tracking />
|
||||
</BookingFlowConfig>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ import { ToastHandler } from "@scandic-hotels/design-system/ToastHandler"
|
||||
|
||||
import TrpcProvider from "@/lib/trpc/Provider"
|
||||
|
||||
import { BookingFlowProviders } from "@/components/BookingFlowProviders"
|
||||
import RouteChange from "@/components/RouteChange"
|
||||
import AdobeSDKScript from "@/components/TrackingSDK/AdobeSDKScript"
|
||||
import GTMScript from "@/components/TrackingSDK/GTMScript"
|
||||
@@ -63,9 +64,11 @@ export default async function RootLayout(
|
||||
>
|
||||
<NuqsAdapter>
|
||||
<TrpcProvider>
|
||||
<RouteChange />
|
||||
{children}
|
||||
<ToastHandler />
|
||||
<BookingFlowProviders>
|
||||
<RouteChange />
|
||||
{children}
|
||||
<ToastHandler />
|
||||
</BookingFlowProviders>
|
||||
</TrpcProvider>
|
||||
</NuqsAdapter>
|
||||
</ClientIntlProvider>
|
||||
|
||||
Reference in New Issue
Block a user