feat(SW-243): import tempdata
This commit is contained in:
@@ -1,47 +1,19 @@
|
|||||||
import IntroSection from "@/components/HotelReservation/BookingConfirmation/IntroSection"
|
import IntroSection from "@/components/HotelReservation/BookingConfirmation/IntroSection"
|
||||||
import StaySection from "@/components/HotelReservation/BookingConfirmation/StaySection"
|
import StaySection from "@/components/HotelReservation/BookingConfirmation/StaySection"
|
||||||
import SummarySection from "@/components/HotelReservation/BookingConfirmation/SummarySection"
|
import SummarySection from "@/components/HotelReservation/BookingConfirmation/SummarySection"
|
||||||
|
import { tempConfirmationData } from "@/components/HotelReservation/BookingConfirmation/tempConfirmationData"
|
||||||
|
|
||||||
import styles from "./page.module.css"
|
import styles from "./page.module.css"
|
||||||
|
|
||||||
import { BookingConfirmation } from "@/types/components/hotelReservation/bookingConfirmation/bookingConfirmation"
|
|
||||||
|
|
||||||
export default function BookingConfirmationPage() {
|
export default function BookingConfirmationPage() {
|
||||||
const tempConfirmationData: BookingConfirmation = {
|
const { email, hotel, stay, summary } = tempConfirmationData
|
||||||
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",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className={styles.main}>
|
<main className={styles.main}>
|
||||||
<section className={styles.section}>
|
<section className={styles.section}>
|
||||||
<IntroSection email={tempConfirmationData.email} />
|
<IntroSection email={email} />
|
||||||
<StaySection
|
<StaySection hotel={hotel} stay={stay} />
|
||||||
hotel={tempConfirmationData.hotel}
|
<SummarySection summary={summary} />
|
||||||
stay={tempConfirmationData.stay}
|
|
||||||
/>
|
|
||||||
<SummarySection summary={tempConfirmationData.summary} />
|
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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",
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user