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:
@@ -0,0 +1,4 @@
|
|||||||
|
export default async function BookingConfirmationPage() {
|
||||||
|
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
|
||||||
|
return <div>booking-confirmation</div>
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
.layout {
|
||||||
|
background-color: var(--Background-Primary);
|
||||||
|
min-height: 100dvh;
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export default async function PaymentCallbackPage() {
|
||||||
|
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
|
||||||
|
return <div>payment-callback</div>
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export default async function DetailsPage() {
|
||||||
|
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
|
||||||
|
return <div>details</div>
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
.layout {
|
||||||
|
background-color: var(--Background-Primary);
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export default async function SelectHotelPage() {
|
||||||
|
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
|
||||||
|
return <div>select-hotel</div>
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export default async function SelectRatePage() {
|
||||||
|
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
|
||||||
|
return <div>select-rate</div>
|
||||||
|
}
|
||||||
14
apps/partner-sas/app/[lang]/hotelreservation/layout.tsx
Normal file
14
apps/partner-sas/app/[lang]/hotelreservation/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
export async function generateMetadata() {
|
||||||
|
return {
|
||||||
|
robots: {
|
||||||
|
index: true,
|
||||||
|
follow: true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function HotelReservationLayout({
|
||||||
|
children,
|
||||||
|
}: React.PropsWithChildren) {
|
||||||
|
return <>{children}</>
|
||||||
|
}
|
||||||
8
apps/partner-sas/app/[lang]/hotelreservation/page.tsx
Normal file
8
apps/partner-sas/app/[lang]/hotelreservation/page.tsx
Normal 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`)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user