Merged in fix/book-607-page-not-found-confirmation-page (pull request #3345)

* fix(BOOK-607): updated to read from base URL env and contentstack slug instead

* made url optional on interface

* added url to findBooking query

* added the correct (new) link in the confirmation header, add to calendar


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Haneling
2025-12-17 07:53:04 +00:00
parent c796f5bb81
commit b8bc94acb3
7 changed files with 69 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ import type { MutableRefObject } from "react"
interface BookingConfirmationHeaderProps extends Pick<
BookingConfirmation,
"booking" | "hotel"
"booking" | "hotel" | "url"
> {
mainRef: MutableRefObject<HTMLElement | null>
}
@@ -26,6 +26,7 @@ interface BookingConfirmationHeaderProps extends Pick<
export function Header({
booking,
hotel,
url,
// mainRef,
}: BookingConfirmationHeaderProps) {
const intl = useIntl()
@@ -52,7 +53,7 @@ export function Header({
startInputType: "utc",
status: "CONFIRMED",
title: hotel.name,
url: hotel.contactInformation.websiteUrl,
url: url ?? undefined,
}
return (