Merged in fix/my-stay-bookingflowconfig-missing (pull request #3020)

fix: wrap MyStay component in BookingFlowConfig to handle RSC problem where config is not set

* fix: wrap MyStay component in BookingFlowConfig to handle RSC problem where config is not set


Approved-by: Bianca Widstam
This commit is contained in:
Joakim Jäderberg
2025-10-27 14:55:00 +00:00
parent b90d60bb72
commit 9c78d6a98a

View File

@@ -1,3 +1,7 @@
import { BookingFlowConfig } from "@scandic-hotels/booking-flow/BookingFlowConfig"
import { bookingFlowConfig } from "@/constants/bookingFlowConfig"
import MyStay from "@/components/HotelReservation/MyStay"
import { setLang } from "@/i18n/serverContext"
@@ -14,9 +18,9 @@ export default async function MyStayPage(
const refId = searchParams.RefId
return (
<>
<BookingFlowConfig config={bookingFlowConfig}>
<MyStay refId={refId} lang={params.lang} />
<Tracking />
</>
</BookingFlowConfig>
)
}