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({ export default async function ParkingAmenity({
parking, parking,
parkingPageLink, hasParkingPage,
}: ParkingAmenityProps) { }: ParkingAmenityProps) {
const intl = await getIntl() const intl = await getIntl()
@@ -82,14 +82,15 @@ export default async function ParkingAmenity({
</div> </div>
))} ))}
</div> </div>
{parkingPageLink && ( {hasParkingPage && (
<Button <Button
className={styles.parkingPageLink} className={styles.parkingPageLink}
theme="base" theme="base"
intent="secondary" intent="secondary"
asChild 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" })} {intl.formatMessage({ id: "About parking" })}
</Link> </Link>
</Button> </Button>

View File

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