feat(SW-644): rename prop name

This commit is contained in:
Fredrik Thorsson
2024-12-04 15:54:46 +01:00
parent 50611d1be2
commit 5453cddd3a
3 changed files with 6 additions and 6 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,
contentPageLink, parkingPageLink,
}: ParkingAmenityProps) { }: ParkingAmenityProps) {
const intl = await getIntl() const intl = await getIntl()
@@ -82,14 +82,14 @@ export default async function ParkingAmenity({
</div> </div>
))} ))}
</div> </div>
{contentPageLink && ( {parkingPageLink && (
<Button <Button
className={styles.contentPageLink} className={styles.parkingPageLink}
theme="base" theme="base"
intent="secondary" intent="secondary"
asChild asChild
> >
<Link href={contentPageLink} color="burgundy" weight="bold"> <Link href={parkingPageLink} color="burgundy" weight="bold">
{intl.formatMessage({ id: "About parking" })} {intl.formatMessage({ id: "About parking" })}
</Link> </Link>
</Button> </Button>

View File

@@ -19,6 +19,6 @@
gap: var(--Spacing-x1); gap: var(--Spacing-x1);
} }
.contentPageLink { .parkingPageLink {
margin-top: var(--Spacing-x2); margin-top: var(--Spacing-x2);
} }

View File

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