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