Merged in feat/prepare-hotelreservation-routes-in-sas (pull request #2581)

Prepare hotelreservation routes

* Prepare hotelreservation routes


Approved-by: Matilda Landström
This commit is contained in:
Anton Gunnarsson
2025-07-30 13:22:36 +00:00
parent ed3df92aca
commit ace44d00dc
12 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
export default async function BookingConfirmationPage() {
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
return <div>booking-confirmation</div>
}

View File

@@ -0,0 +1,4 @@
export default async function GuaranteePaymentCallbackPage() {
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
return <div>gla-payment-callback</div>
}

View File

@@ -0,0 +1,4 @@
.layout {
background-color: var(--Background-Primary);
min-height: 100dvh;
}

View File

@@ -0,0 +1,10 @@
import styles from "./layout.module.css"
// TODO is this really needed? Similar to standard layout, but without SidePeek?
export default function PaymentCallbackLayout({
children,
}: {
children: React.ReactNode
}) {
return <div className={styles.layout}>{children}</div>
}

View File

@@ -0,0 +1,4 @@
export default async function PaymentCallbackPage() {
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
return <div>payment-callback</div>
}

View File

@@ -0,0 +1,4 @@
export default async function DetailsPage() {
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
return <div>details</div>
}

View File

@@ -0,0 +1,3 @@
.layout {
background-color: var(--Background-Primary);
}

View File

@@ -0,0 +1,16 @@
import styles from "./layout.module.css"
import type { ReactNode } from "react"
export default function StandardHotelReservationLayout({
children,
}: {
children: ReactNode
}) {
return (
<div className={styles.layout}>
{children}
{/* <SidePeek /> */}
</div>
)
}

View File

@@ -0,0 +1,4 @@
export default async function SelectHotelPage() {
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
return <div>select-hotel</div>
}

View File

@@ -0,0 +1,4 @@
export default async function SelectRatePage() {
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
return <div>select-rate</div>
}

View File

@@ -0,0 +1,14 @@
export async function generateMetadata() {
return {
robots: {
index: true,
follow: true,
},
}
}
export default function HotelReservationLayout({
children,
}: React.PropsWithChildren) {
return <>{children}</>
}

View File

@@ -0,0 +1,8 @@
import { redirect } from "next/navigation"
import { getLang } from "@/i18n/serverContext"
export default async function HotelReservationPage() {
const lang = await getLang()
redirect(`/${lang}/hotelreservation/select-hotel`)
}