From e23f8694e3013286011952576b84ab5baf69dab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20J=C3=A4derberg?= Date: Fri, 9 May 2025 09:31:22 +0000 Subject: [PATCH] Merged in fix/open-up-hotelreservation-pages (pull request #2020) fix: open up hotelreservation * fix: open up hotelreservation Approved-by: Michael Zetterberg --- .../(live)/(public)/hotelreservation/(standard)/page.tsx | 6 ------ .../app/[lang]/(live)/(public)/hotelreservation/layout.tsx | 4 ---- .../[lang]/(live)/@bookingwidget/hotelreservation/page.tsx | 6 ------ 3 files changed, 16 deletions(-) diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/page.tsx index cdbfa14b6..ea2c9305b 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/page.tsx @@ -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) { - if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") { - return null - } - const pageTrackingData: TrackingSDKPageData = { pageId: "hotelreservation", domainLanguage: params.lang, diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/layout.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/layout.tsx index ffee19a76..6de8a694f 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/layout.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/layout.tsx @@ -14,9 +14,5 @@ export async function generateMetadata({ params }: PageArgs) { export default function HotelReservationLayout({ children, }: React.PropsWithChildren) { - if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") { - return null - } - return <>{children} } diff --git a/apps/scandic-web/app/[lang]/(live)/@bookingwidget/hotelreservation/page.tsx b/apps/scandic-web/app/[lang]/(live)/@bookingwidget/hotelreservation/page.tsx index a0558fbcb..68de93f90 100644 --- a/apps/scandic-web/app/[lang]/(live)/@bookingwidget/hotelreservation/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/@bookingwidget/hotelreservation/page.tsx @@ -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) { - if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") { - return null - } - return }