This creates the alternative hotels page. It is mostly a copy of the select hotel page, and most of the contents of the pages lives under the same component in /components.
Merged in feat/sw-397-alternative-hotels (pull request #1211) Feat/sw 397 alternative hotels * fix(SW-397): create alternative hotels page * update types * Adapt to new changes for fetching data * Make bookingcode optional * Code review fixes Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -19,5 +19,6 @@ export interface AlertProps extends VariantProps<typeof alertVariants> {
|
||||
link?: {
|
||||
url: string
|
||||
title: string
|
||||
keepSearchParams?: boolean
|
||||
} | null
|
||||
}
|
||||
|
||||
@@ -64,7 +64,12 @@ export default function Alert({
|
||||
) : null}
|
||||
</div>
|
||||
{link ? (
|
||||
<Link color="burgundy" textDecoration="underline" href={link.url}>
|
||||
<Link
|
||||
color="burgundy"
|
||||
textDecoration="underline"
|
||||
href={link.url}
|
||||
keepSearchParams={link.keepSearchParams}
|
||||
>
|
||||
{link.title}
|
||||
</Link>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user