diff --git a/app/[lang]/(live)/(public)/hotelreservation/(confirmation)/booking-confirmation/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(confirmation)/booking-confirmation/page.tsx index 978b26eec..cc92e8c47 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(confirmation)/booking-confirmation/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(confirmation)/booking-confirmation/page.tsx @@ -9,8 +9,8 @@ import { setLang } from "@/i18n/serverContext" import { TrackingChannelEnum, - TrackingSDKHotelInfo, - TrackingSDKPageData, + type TrackingSDKHotelInfo, + type TrackingSDKPageData, } from "@/types/components/tracking" import { CurrencyEnum } from "@/types/enums/currency" import type { LangParams, PageArgs } from "@/types/params" diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/page.tsx index 75a01b61c..1dcd09073 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/page.tsx @@ -1,6 +1,5 @@ import { Suspense } from "react" -import { Lang } from "@/constants/languages" import { env } from "@/env/server" import TrackingSDK from "@/components/TrackingSDK" @@ -10,7 +9,7 @@ import styles from "./page.module.css" import { TrackingChannelEnum, - TrackingSDKPageData, + type TrackingSDKPageData, } from "@/types/components/tracking" import type { LangParams, PageArgs } from "@/types/params" @@ -23,7 +22,7 @@ export default function HotelReservationPage({ params }: PageArgs) { const pageTrackingData: TrackingSDKPageData = { pageId: "hotelreservation", - domainLanguage: params.lang as Lang, + domainLanguage: params.lang, channel: TrackingChannelEnum["hotelreservation"], pageName: "hotelreservation", siteSections: "hotelreservation", diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx index cddf182db..090a00cdc 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx @@ -2,7 +2,6 @@ import { differenceInCalendarDays, format, isWeekend } from "date-fns" import { notFound } from "next/navigation" import { Suspense } from "react" -import { Lang } from "@/constants/languages" import { getHotelData, getLocations } from "@/lib/trpc/memoizedRequests" import HotelInfoCard from "@/components/HotelReservation/SelectRate/HotelInfoCard" @@ -19,8 +18,8 @@ import { ChildBedMapEnum } from "@/types/components/bookingWidget/enums" import type { SelectRateSearchParams } from "@/types/components/hotelReservation/selectRate/selectRate" import { TrackingChannelEnum, - TrackingSDKHotelInfo, - TrackingSDKPageData, + type TrackingSDKHotelInfo, + type TrackingSDKPageData, } from "@/types/components/tracking" import type { LangParams, PageArgs } from "@/types/params" @@ -72,7 +71,7 @@ export default async function SelectRatePage({ const pageTrackingData: TrackingSDKPageData = { pageId: "select-rate", - domainLanguage: params.lang as Lang, + domainLanguage: params.lang, channel: TrackingChannelEnum["hotelreservation"], pageName: "hotelreservation|select-rate", siteSections: "hotelreservation|select-rate", diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/enterDetailsTracking.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/enterDetailsTracking.tsx index a031296b7..1b2d1ca12 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/enterDetailsTracking.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/enterDetailsTracking.tsx @@ -1,12 +1,8 @@ "use client" - import { usePathname } from "next/navigation" import { useEffect, useMemo, useRef } from "react" -import { Lang } from "@/constants/languages" -import { RoomConfiguration } from "@/server/routers/hotels/output" import { useEnterDetailsStore } from "@/stores/enter-details" -import useTrackingStore from "@/stores/tracking" import { useSessionId } from "@/hooks/useSessionId" import { createSDKPageObject } from "@/utils/tracking" @@ -14,11 +10,13 @@ import { createSDKPageObject } from "@/utils/tracking" import { RoomPackageCodeEnum } from "@/types/components/hotelReservation/selectRate/roomFilter" import { TrackingChannelEnum, - TrackingSDKHotelInfo, - TrackingSDKPageData, - TrackingSDKUserData, + type TrackingSDKHotelInfo, + type TrackingSDKPageData, + type TrackingSDKUserData, } from "@/types/components/tracking" -import { Packages } from "@/types/requests/packages" +import type { Packages } from "@/types/requests/packages" +import type { Lang } from "@/constants/languages" +import type { RoomConfiguration } from "@/server/routers/hotels/output" type Props = { initialHotelsTrackingData: TrackingSDKHotelInfo diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/page.tsx index 0ba6d31b9..4aed8e89a 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/step/page.tsx @@ -38,8 +38,8 @@ import { ChildBedMapEnum } from "@/types/components/bookingWidget/enums" import type { SelectRateSearchParams } from "@/types/components/hotelReservation/selectRate/selectRate" import { TrackingChannelEnum, - TrackingSDKHotelInfo, - TrackingSDKPageData, + type TrackingSDKHotelInfo, + type TrackingSDKPageData, } from "@/types/components/tracking" import { StepEnum } from "@/types/enums/step" import type { LangParams, PageArgs } from "@/types/params" diff --git a/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainer.tsx b/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainer.tsx index 3acbe0c8b..af35a90db 100644 --- a/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainer.tsx +++ b/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainer.tsx @@ -22,8 +22,8 @@ import type { import type { SelectHotelMapContainerProps } from "@/types/components/hotelReservation/selectHotel/map" import { TrackingChannelEnum, - TrackingSDKHotelInfo, - TrackingSDKPageData, + type TrackingSDKHotelInfo, + type TrackingSDKPageData, } from "@/types/components/tracking" import type { Lang } from "@/constants/languages" diff --git a/components/HotelReservation/SelectHotel/index.tsx b/components/HotelReservation/SelectHotel/index.tsx index dd756752f..7ce5e7cbb 100644 --- a/components/HotelReservation/SelectHotel/index.tsx +++ b/components/HotelReservation/SelectHotel/index.tsx @@ -34,11 +34,10 @@ import type { HotelData } from "@/types/components/hotelReservation/selectHotel/ import type { SelectHotelProps } from "@/types/components/hotelReservation/selectHotel/selectHotel" import { TrackingChannelEnum, - TrackingSDKHotelInfo, - TrackingSDKPageData, + type TrackingSDKHotelInfo, + type TrackingSDKPageData, } from "@/types/components/tracking" import { AlertTypeEnum } from "@/types/enums/alert" -import type { Lang } from "@/constants/languages" export default async function SelectHotel({ city, @@ -103,7 +102,7 @@ export default async function SelectHotel({ const pageTrackingData: TrackingSDKPageData = { pageId: "select-hotel", - domainLanguage: params.lang as Lang, + domainLanguage: params.lang, channel: TrackingChannelEnum["hotelreservation"], pageName: "hotelreservation|select-hotel", siteSections: "hotelreservation|select-hotel",