feat(SW-644): rename prop name
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -19,6 +19,6 @@
|
|||||||
gap: var(--Spacing-x1);
|
gap: var(--Spacing-x1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.contentPageLink {
|
.parkingPageLink {
|
||||||
margin-top: var(--Spacing-x2);
|
margin-top: var(--Spacing-x2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user