diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(payment-callback)/gla-payment-callback/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(payment-callback)/gla-payment-callback/page.tsx index b029551ce..3268e2500 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(payment-callback)/gla-payment-callback/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(payment-callback)/gla-payment-callback/page.tsx @@ -4,7 +4,7 @@ import { BookingErrorCodeEnum, PaymentCallbackStatusEnum, } from "@/constants/booking" -import { hotelreservation } from "@/constants/routes/hotelReservation" +import { myStay } from "@/constants/routes/myStay" import { serverClient } from "@/lib/trpc/server" import LoadingSpinner from "@/components/LoadingSpinner" @@ -27,7 +27,7 @@ export default async function GuaranteePaymentCallbackPage({ const status = searchParams.status const confirmationNumber = searchParams.confirmationNumber const refId = searchParams.refId - const myStayUrl = `${hotelreservation(lang)}/my-stay?RefId=${refId}` + const myStayUrl = `${myStay[lang]}?RefId=${refId}` if ( status === PaymentCallbackStatusEnum.Success && diff --git a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Confirmation/index.tsx b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Confirmation/index.tsx index 10c9258db..88b99038c 100644 --- a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Confirmation/index.tsx +++ b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Confirmation/index.tsx @@ -11,12 +11,13 @@ export default function Confirmation({ booking, hotel, children, + refId, }: React.PropsWithChildren) { const mainRef = useRef(null) return (
-
+
{children}
) diff --git a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Header/Actions/ManageBooking.tsx b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Header/Actions/ManageBooking.tsx index 45f7d3655..6924db6ca 100644 --- a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Header/Actions/ManageBooking.tsx +++ b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Header/Actions/ManageBooking.tsx @@ -1,23 +1,15 @@ "use client" import { useIntl } from "react-intl" -import { myBooking } from "@/constants/myBooking" -import { env } from "@/env/client" - import { EditIcon } from "@/components/Icons" import Button from "@/components/TempDesignSystem/Button" import Link from "@/components/TempDesignSystem/Link" -import useLang from "@/hooks/useLang" import type { ManageBookingProps } from "@/types/components/hotelReservation/bookingConfirmation/actions/manageBooking" -export default function ManageBooking({ - confirmationNumber, - lastName, -}: ManageBookingProps) { +export default function ManageBooking({ bookingUrl }: ManageBookingProps) { const intl = useIntl() - const lang = useLang() - const myBookingUrl = myBooking[env.NEXT_PUBLIC_NODE_ENV][lang] + return (