feat: allow direct access to my stay from booking confirmation

This commit is contained in:
Michael Zetterberg
2025-05-06 09:26:02 +02:00
parent 41e5ce25b2
commit 35a2ae9dcc
7 changed files with 32 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
"use client"
import { useRef } from "react"
import Header from "@/components/HotelReservation/BookingConfirmation/Header"
@@ -11,13 +12,12 @@ export default function Confirmation({
booking,
hotel,
children,
refId,
}: React.PropsWithChildren<ConfirmationProps>) {
const mainRef = useRef<HTMLElement | null>(null)
return (
<main className={styles.main} ref={mainRef}>
<Header booking={booking} hotel={hotel} mainRef={mainRef} refId={refId} />
<Header booking={booking} hotel={hotel} mainRef={mainRef} />
{children}
</main>
)