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:
@@ -1,5 +1,3 @@
|
|||||||
import { env } from "@/env/server"
|
|
||||||
|
|
||||||
import TrackingSDK from "@/components/TrackingSDK"
|
import TrackingSDK from "@/components/TrackingSDK"
|
||||||
|
|
||||||
import styles from "./page.module.css"
|
import styles from "./page.module.css"
|
||||||
@@ -11,10 +9,6 @@ import {
|
|||||||
import type { LangParams, PageArgs } from "@/types/params"
|
import type { LangParams, PageArgs } from "@/types/params"
|
||||||
|
|
||||||
export default function HotelReservationPage({ params }: PageArgs<LangParams>) {
|
export default function HotelReservationPage({ params }: PageArgs<LangParams>) {
|
||||||
if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
const pageTrackingData: TrackingSDKPageData = {
|
const pageTrackingData: TrackingSDKPageData = {
|
||||||
pageId: "hotelreservation",
|
pageId: "hotelreservation",
|
||||||
domainLanguage: params.lang,
|
domainLanguage: params.lang,
|
||||||
|
|||||||
@@ -14,9 +14,5 @@ export async function generateMetadata({ params }: PageArgs<LangParams>) {
|
|||||||
export default function HotelReservationLayout({
|
export default function HotelReservationLayout({
|
||||||
children,
|
children,
|
||||||
}: React.PropsWithChildren) {
|
}: React.PropsWithChildren) {
|
||||||
if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
return <>{children}</>
|
return <>{children}</>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import { env } from "@/env/server"
|
|
||||||
|
|
||||||
import { BookingWidget } from "@/components/BookingWidget"
|
import { BookingWidget } from "@/components/BookingWidget"
|
||||||
|
|
||||||
import type { BookingWidgetSearchData } from "@/types/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({
|
export default async function BookingWidgetPage({
|
||||||
searchParams,
|
searchParams,
|
||||||
}: PageArgs<LangParams, BookingWidgetSearchData>) {
|
}: PageArgs<LangParams, BookingWidgetSearchData>) {
|
||||||
if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
return <BookingWidget bookingWidgetSearchParams={searchParams} />
|
return <BookingWidget bookingWidgetSearchParams={searchParams} />
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user