Merged in fix/open-up-hotelreservation-pages (pull request #2020)

fix: open up hotelreservation

* fix: open up hotelreservation


Approved-by: Michael Zetterberg
This commit is contained in:
Joakim Jäderberg
2025-05-09 09:31:22 +00:00
parent 55ed8c51fd
commit e23f8694e3
3 changed files with 0 additions and 16 deletions

View File

@@ -1,5 +1,3 @@
import { env } from "@/env/server"
import TrackingSDK from "@/components/TrackingSDK"
import styles from "./page.module.css"
@@ -11,10 +9,6 @@ import {
import type { LangParams, PageArgs } from "@/types/params"
export default function HotelReservationPage({ params }: PageArgs<LangParams>) {
if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
return null
}
const pageTrackingData: TrackingSDKPageData = {
pageId: "hotelreservation",
domainLanguage: params.lang,

View File

@@ -14,9 +14,5 @@ export async function generateMetadata({ params }: PageArgs<LangParams>) {
export default function HotelReservationLayout({
children,
}: React.PropsWithChildren) {
if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
return null
}
return <>{children}</>
}

View File

@@ -1,5 +1,3 @@
import { env } from "@/env/server"
import { BookingWidget } from "@/components/BookingWidget"
import type { BookingWidgetSearchData } from "@/types/components/bookingWidget"
@@ -8,9 +6,5 @@ import type { LangParams, PageArgs } from "@/types/params"
export default async function BookingWidgetPage({
searchParams,
}: PageArgs<LangParams, BookingWidgetSearchData>) {
if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
return null
}
return <BookingWidget bookingWidgetSearchParams={searchParams} />
}