From c3e78fcaddcf3030ed4160c7d93f23c986d68e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20J=C3=A4derberg?= Date: Thu, 11 Sep 2025 09:05:47 +0000 Subject: [PATCH] Merged in feature/SW-3457-enter-details-on-sas (pull request #2792) Add enter-details page to SAS * Add enter-details page to SAS Approved-by: Anton Gunnarsson --- .../hotelreservation/(standard)/details/page.tsx | 12 +++++++++--- apps/partner-sas/global.d.ts | 1 + packages/booking-flow/package.json | 6 ++---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/apps/partner-sas/app/[lang]/hotelreservation/(standard)/details/page.tsx b/apps/partner-sas/app/[lang]/hotelreservation/(standard)/details/page.tsx index ed81126dc..3b5df1964 100644 --- a/apps/partner-sas/app/[lang]/hotelreservation/(standard)/details/page.tsx +++ b/apps/partner-sas/app/[lang]/hotelreservation/(standard)/details/page.tsx @@ -1,4 +1,10 @@ -export default async function DetailsPage() { - // eslint-disable-next-line formatjs/no-literal-string-in-jsx - return
details
+import { EnterDetailsPage as EnterDetailsPagePrimitive } from "@scandic-hotels/booking-flow/pages/EnterDetailsPage" + +import type { LangParams, PageArgs } from "@/types/params" + +export default async function DetailsPage(props: PageArgs) { + const { lang } = await props.params + const searchParams = await props.searchParams + + return } diff --git a/apps/partner-sas/global.d.ts b/apps/partner-sas/global.d.ts index 9b2abb356..09ace8777 100644 --- a/apps/partner-sas/global.d.ts +++ b/apps/partner-sas/global.d.ts @@ -2,3 +2,4 @@ import "@scandic-hotels/common/global.d.ts" import "@scandic-hotels/trpc/types.d.ts" import "@scandic-hotels/trpc/auth.d.ts" import "@scandic-hotels/trpc/jwt.d.ts" +import "@scandic-hotels/booking-flow/global.d.ts" diff --git a/packages/booking-flow/package.json b/packages/booking-flow/package.json index d3d2e0b63..e661dac8c 100644 --- a/packages/booking-flow/package.json +++ b/packages/booking-flow/package.json @@ -55,6 +55,7 @@ "./contexts/SelectRate/Room": "./lib/contexts/SelectRate/Room.ts", "./contexts/SelectRate/SelectRateContext": "./lib/contexts/SelectRate/SelectRateContext.tsx", "./contexts/SelectRate/types": "./lib/contexts/SelectRate/types.ts", + "./global.d.ts": "./global.d.ts", "./hooks/useHandleBookingStatus": "./lib/hooks/useHandleBookingStatus.ts", "./hooks/useSearchHistory": "./lib/hooks/useSearchHistory.ts", "./pages/*": "./lib/pages/*.tsx", @@ -65,18 +66,15 @@ "./stores/enter-details": "./lib/stores/enter-details/index.ts", "./stores/enter-details/types": "./lib/stores/enter-details/types.ts", "./stores/hotels-map": "./lib/stores/hotels-map.ts", - "./stores/booking-confirmation": "./lib/stores/booking-confirmation/index.ts", "./types/components/bookingConfirmation/bookingConfirmation": "./lib/types/components/bookingConfirmation/bookingConfirmation.ts", "./types/components/findMyBooking/additionalInfoCookieValue": "./lib/types/components/findMyBooking/additionalInfoCookieValue.ts", "./types/components/promo/promoProps": "./lib/types/components/promo/promoProps.ts", "./types/components/selectRate/selectRate": "./lib/types/components/selectRate/selectRate.ts", - "./types/stores/rates": "./lib/types/stores/rates.ts", - "./types/components/selectRate/selectRate": "./lib/types/components/selectRate/selectRate.ts", "./types/membershipFailedError": "./lib/types/membershipFailedError.ts", "./types/stores/booking-confirmation": "./lib/types/stores/booking-confirmation.ts", - "./utils/getRoomFeatureDescription": "./lib/utils/getRoomFeatureDescription.ts", "./types/stores/rates": "./lib/types/stores/rates.ts", "./utils/calculateRegularPrice": "./lib/utils/calculateRegularPrice.ts", + "./utils/getRoomFeatureDescription": "./lib/utils/getRoomFeatureDescription.ts", "./utils/isSameBooking": "./lib/utils/isSameBooking.ts", "./utils/nuqs": "./lib/utils/nuqs.ts", "./utils/SelectRate": "./lib/utils/SelectRate/index.tsx",