feat(SW-644): add boelan

This commit is contained in:
Fredrik Thorsson
2024-12-04 16:11:24 +01:00
parent 5453cddd3a
commit f40089daea
2 changed files with 5 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ import { IconName } from "@/types/components/icon"
export default async function ParkingAmenity({
parking,
parkingPageLink,
hasParkingPage,
}: ParkingAmenityProps) {
const intl = await getIntl()
@@ -82,14 +82,15 @@ export default async function ParkingAmenity({
</div>
))}
</div>
{parkingPageLink && (
{hasParkingPage && (
<Button
className={styles.parkingPageLink}
theme="base"
intent="secondary"
asChild
>
<Link href={parkingPageLink} color="burgundy" weight="bold">
{/* Not decided how to handle linking to separate parking page */}
<Link href="#" color="burgundy" weight="bold">
{intl.formatMessage({ id: "About parking" })}
</Link>
</Button>

View File

@@ -8,7 +8,7 @@ export enum Periods {
export type ParkingAmenityProps = {
parking: Hotel["parking"]
parkingPageLink?: string
hasParkingPage?: boolean
}
export type ParkingListProps = {