diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/page.tsx index f1fb59405..91db8e53b 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/page.tsx @@ -22,7 +22,6 @@ import SelectedRoom from "@/components/HotelReservation/EnterDetails/SelectedRoo import DesktopSummary from "@/components/HotelReservation/EnterDetails/Summary/Desktop" import MobileSummary from "@/components/HotelReservation/EnterDetails/Summary/Mobile" import { generateChildrenString } from "@/components/HotelReservation/utils" -import TrackingSDK from "@/components/TrackingSDK" import { getIntl } from "@/i18n" import { setLang } from "@/i18n/serverContext" import EnterDetailsProvider from "@/providers/EnterDetailsProvider" @@ -34,11 +33,7 @@ import styles from "./page.module.css" import { ChildBedMapEnum } from "@/types/components/bookingWidget/enums" import { type SelectRateSearchParams } from "@/types/components/hotelReservation/selectRate/selectRate" -import { - TrackingChannelEnum, - type TrackingSDKHotelInfo, - type TrackingSDKPageData, -} from "@/types/components/tracking" +import { type TrackingSDKHotelInfo } from "@/types/components/tracking" import { StepEnum } from "@/types/enums/step" import type { LangParams, PageArgs } from "@/types/params" @@ -106,13 +101,13 @@ export default async function StepPage({ const packages = packageCodes ? await getPackages({ - adults, - children: childrenInRoom?.length, - endDate: toDate, - hotelId, - packageCodes, - startDate: fromDate, - }) + adults, + children: childrenInRoom?.length, + endDate: toDate, + hotelId, + packageCodes, + startDate: fromDate, + }) : null const roomAvailability = await getSelectedRoomAvailability( @@ -153,13 +148,13 @@ export default async function StepPage({ const memberPrice = roomAvailability.memberRate ? { - price: roomAvailability.memberRate.localPrice.pricePerStay, - currency: roomAvailability.memberRate.localPrice.currency, - } + price: roomAvailability.memberRate.localPrice.pricePerStay, + currency: roomAvailability.memberRate.localPrice.currency, + } : undefined - const arrivalDate = new Date(searchParams.fromDate) - const departureDate = new Date(searchParams.toDate) + const arrivalDate = new Date(searchParams.fromdate) + const departureDate = new Date(searchParams.todate) const hotelAttributes = hotelData?.hotel const initialHotelsTrackingData: TrackingSDKHotelInfo = { diff --git a/components/HotelReservation/EnterDetails/Summary/PriceDetailsTable/index.tsx b/components/HotelReservation/EnterDetails/Summary/PriceDetailsTable/index.tsx deleted file mode 100644 index 196309748..000000000 --- a/components/HotelReservation/EnterDetails/Summary/PriceDetailsTable/index.tsx +++ /dev/null @@ -1,195 +0,0 @@ -"use client" - -import { useIntl } from "react-intl" - -import { dt } from "@/lib/dt" -import { useEnterDetailsStore } from "@/stores/enter-details" - -import Body from "@/components/TempDesignSystem/Text/Body" -import Caption from "@/components/TempDesignSystem/Text/Caption" -import useLang from "@/hooks/useLang" -import { formatPrice } from "@/utils/numberFormatting" - -import styles from "./priceDetailsTable.module.css" - -import { type PriceDetailsTableProps } from "@/types/components/hotelReservation/enterDetails/priceDetailsTable" -import type { DetailsState } from "@/types/stores/enter-details" - -function Row({ - label, - value, - bold, -}: { - label: string - value: string - bold?: boolean -}) { - return ( -
| - - {intl.formatMessage({ id: "Price including VAT" })} - - | -- - {formatPrice( - intl, - totalPrice.local.price, - totalPrice.local.currency - )} - - | -