diff --git a/app/[lang]/(live)/(public)/hotelreservation/booking-confirmation/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/booking-confirmation/page.tsx index 1c404a393..46f941bbc 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/booking-confirmation/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/booking-confirmation/page.tsx @@ -1,47 +1,19 @@ import IntroSection from "@/components/HotelReservation/BookingConfirmation/IntroSection" import StaySection from "@/components/HotelReservation/BookingConfirmation/StaySection" import SummarySection from "@/components/HotelReservation/BookingConfirmation/SummarySection" +import { tempConfirmationData } from "@/components/HotelReservation/BookingConfirmation/tempConfirmationData" import styles from "./page.module.css" -import { BookingConfirmation } from "@/types/components/hotelReservation/bookingConfirmation/bookingConfirmation" - export default function BookingConfirmationPage() { - const tempConfirmationData: BookingConfirmation = { - email: "lisa.andersson@outlook.com", - hotel: { - name: "Helsinki Hub", - address: "Kaisaniemenkatu 7, Helsinki", - location: "Helsinki", - phone: "+358 300 870680", - image: - "https://test3.scandichotels.com/imagevault/publishedmedia/i11isd60bh119s9486b7/downtown-camper-by-scandic-lobby-reception-desk-ch.jpg?w=640", - checkIn: "15.00", - checkOut: "12.00", - breakfast: { start: "06:30", end: "10:00" }, - }, - stay: { - nights: 1, - start: "2024.03.09", - end: "2024.03.10", - }, - summary: { - roomType: "Standard Room", - bedType: "King size", - breakfast: "Yes", - flexibility: "Yes", - }, - } + const { email, hotel, stay, summary } = tempConfirmationData return (
- - - + + +
) diff --git a/components/HotelReservation/BookingConfirmation/tempConfirmationData.ts b/components/HotelReservation/BookingConfirmation/tempConfirmationData.ts new file mode 100644 index 000000000..2dbf572e7 --- /dev/null +++ b/components/HotelReservation/BookingConfirmation/tempConfirmationData.ts @@ -0,0 +1,27 @@ +import { BookingConfirmation } from "@/types/components/hotelReservation/bookingConfirmation/bookingConfirmation" + +export const tempConfirmationData: BookingConfirmation = { + email: "lisa.andersson@outlook.com", + hotel: { + name: "Helsinki Hub", + address: "Kaisaniemenkatu 7, Helsinki", + location: "Helsinki", + phone: "+358 300 870680", + image: + "https://test3.scandichotels.com/imagevault/publishedmedia/i11isd60bh119s9486b7/downtown-camper-by-scandic-lobby-reception-desk-ch.jpg?w=640", + checkIn: "15.00", + checkOut: "12.00", + breakfast: { start: "06:30", end: "10:00" }, + }, + stay: { + nights: 1, + start: "2024.03.09", + end: "2024.03.10", + }, + summary: { + roomType: "Standard Room", + bedType: "King size", + breakfast: "Yes", + flexibility: "Yes", + }, +}