From 184aa2914262ec89c4356836b650a549e0d2b21d Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Thu, 3 Oct 2024 07:42:26 +0000 Subject: [PATCH] Merged in feat/SW-475-enter-details-header (pull request #630) Feat/SW-475 enter details header * feat(SW-475): updated hotel mock data to reflect api * feat(SW-475): Added hotel selection header with sidepeek buttons * fix(SW-475): fixes from PR * fix(SW-475): changed intl string Approved-by: Arvid Norlin --- app/[lang]/(live)/(public)/hotelreservation/[section]/page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/[lang]/(live)/(public)/hotelreservation/[section]/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/[section]/page.tsx index 3ebb491e5..38889c047 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/[section]/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/[section]/page.tsx @@ -2,6 +2,8 @@ import { notFound } from "next/navigation" import { getProfileSafely } from "@/lib/trpc/memoizedRequests" import { serverClient } from "@/lib/trpc/server" +import { getHotelDataSchema } from "@/server/routers/hotels/output" +import tempHotelData from "@/server/routers/hotels/tempHotelData.json" import Details from "@/components/HotelReservation/EnterDetails/Details" import HotelSelectionHeader from "@/components/HotelReservation/HotelSelectionHeader" @@ -80,6 +82,7 @@ export default async function SectionsPage({ searchParams, }: PageArgs) { setLang(params.lang) + const profile = await getProfileSafely() const hotel = await serverClient().hotel.hotelData.get({