diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx index 2e9a8f84f..821c8cd52 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx @@ -125,6 +125,7 @@ export default async function DetailsPage( searchParamsStr={selectRoomParams.toString()} user={user} vat={hotel.vat} + roomCategories={hotelData.roomCategories} >
diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/layout.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/layout.tsx index 5a946f4bf..4546e26d8 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/layout.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/layout.tsx @@ -1,5 +1,3 @@ -import SidePeek from "@scandic-hotels/booking-flow/components/HotelReservationSidePeek" - import styles from "./layout.module.css" import type { LangParams, LayoutArgs } from "@/types/params" @@ -7,10 +5,5 @@ import type { LangParams, LayoutArgs } from "@/types/params" export default function StandardHotelReservationLayout({ children, }: React.PropsWithChildren>) { - return ( -
- {children} - -
- ) + return
{children}
} diff --git a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Rooms/Room/RoomDetailsSidePeek/index.tsx b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Rooms/Room/RoomDetailsSidePeek/index.tsx deleted file mode 100644 index a0722f2d3..000000000 --- a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Rooms/Room/RoomDetailsSidePeek/index.tsx +++ /dev/null @@ -1,48 +0,0 @@ -"use client" - -import { DialogTrigger } from "react-aria-components" -import { useIntl } from "react-intl" - -import { RoomSidePeekContent } from "@scandic-hotels/booking-flow/components/RoomSidePeekContent" -import { Button } from "@scandic-hotels/design-system/Button" -import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" -import { getBookedHotelRoom } from "@scandic-hotels/trpc/routers/booking/helpers" - -import { useBookingConfirmationStore } from "@/stores/booking-confirmation" - -import SidePeekSelfControlled from "@/components/TempDesignSystem/SidePeekSelfControlled" - -interface RoomDetailsSidePeekProps { - roomTypeCode: string -} - -export default function RoomDetailsSidePeek({ - roomTypeCode, -}: RoomDetailsSidePeekProps) { - const { roomCategories } = useBookingConfirmationStore((state) => ({ - roomCategories: state.roomCategories, - })) - const room = getBookedHotelRoom(roomCategories, roomTypeCode) - const intl = useIntl() - - if (!room) { - return null - } - - return ( - - - - - - - ) -} diff --git a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Rooms/Room/index.tsx b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Rooms/Room/index.tsx index cdd561f29..f8f50d0da 100644 --- a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Rooms/Room/index.tsx +++ b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Rooms/Room/index.tsx @@ -11,13 +11,14 @@ import Caption from "@scandic-hotels/design-system/Caption" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import Image from "@scandic-hotels/design-system/Image" import { Typography } from "@scandic-hotels/design-system/Typography" +import { getHotelRoom } from "@scandic-hotels/trpc/routers/booking/helpers" import { CancellationRuleEnum } from "@/constants/booking" +import { useBookingConfirmationStore } from "@/stores/booking-confirmation" +import RoomDetailsSidePeek from "@/components/SidePeeks/RoomDetailsSidePeek" import useLang from "@/hooks/useLang" -import RoomDetailsSidePeek from "./RoomDetailsSidePeek" - import styles from "./room.module.css" import type { RoomProps } from "@/types/components/hotelReservation/bookingConfirmation/rooms/room" @@ -31,6 +32,10 @@ export default function Room({ }: RoomProps) { const intl = useIntl() const lang = useLang() + const { roomCategories } = useBookingConfirmationStore((state) => ({ + roomCategories: state.roomCategories, + })) + const room = getHotelRoom(roomCategories, booking.roomTypeCode) const guestName = `${booking.guest.firstName} ${booking.guest.lastName}` const fromDate = dt(booking.checkInDate).locale(lang) @@ -116,7 +121,18 @@ export default function Room({

{roomName}

- + {room && ( + + )}