feat(SW-281): use distanceToCenter translation
This commit is contained in:
@@ -17,7 +17,7 @@ export default async function HotelListing({
|
|||||||
altText,
|
altText,
|
||||||
name,
|
name,
|
||||||
address,
|
address,
|
||||||
distance,
|
distanceToCentre,
|
||||||
description,
|
description,
|
||||||
}: HotelListingProps) {
|
}: HotelListingProps) {
|
||||||
const intl = await getIntl()
|
const intl = await getIntl()
|
||||||
@@ -43,7 +43,10 @@ export default async function HotelListing({
|
|||||||
<Divider variant="vertical" color="beige" />
|
<Divider variant="vertical" color="beige" />
|
||||||
</div>
|
</div>
|
||||||
<Caption color="uiTextPlaceholder">
|
<Caption color="uiTextPlaceholder">
|
||||||
{`${distance} ${intl.formatMessage({ id: "km to city center" })}`}
|
{intl.formatMessage(
|
||||||
|
{ id: "Distance to city centre" },
|
||||||
|
{ number: distanceToCentre }
|
||||||
|
)}
|
||||||
</Caption>
|
</Caption>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ export type HotelListingProps = {
|
|||||||
altText: Hotel["hotelContent"]["images"]["metaData"]["altText"]
|
altText: Hotel["hotelContent"]["images"]["metaData"]["altText"]
|
||||||
name: Hotel["name"]
|
name: Hotel["name"]
|
||||||
address: Hotel["address"]["streetAddress"]
|
address: Hotel["address"]["streetAddress"]
|
||||||
distance: Hotel["location"]["distanceToCentre"]
|
distanceToCentre: Hotel["location"]["distanceToCentre"]
|
||||||
description: Hotel["hotelContent"]["texts"]["descriptions"]["medium"]
|
description: Hotel["hotelContent"]["texts"]["descriptions"]["medium"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user