fix: SW-981 Fixed distance to center value
This commit is contained in:
@@ -47,7 +47,7 @@ export default async function HotelHeader({
|
||||
<Caption color="textMediumContrast">
|
||||
{intl.formatMessage(
|
||||
{ id: "Distance in km to city centre" },
|
||||
{ number: hotel.location.distanceToCentre }
|
||||
{ number: hotel.location.distanceToCentre / 1000 }
|
||||
)}
|
||||
</Caption>
|
||||
</address>
|
||||
|
||||
@@ -47,7 +47,7 @@ export default async function HotelListingItem({
|
||||
<Caption color="uiTextPlaceholder">
|
||||
{intl.formatMessage(
|
||||
{ id: "Distance in km to city centre" },
|
||||
{ number: distanceToCentre }
|
||||
{ number: distanceToCentre / 1000 }
|
||||
)}
|
||||
</Caption>
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@ export default async function IntroSection({
|
||||
const { distanceToCentre } = location
|
||||
const formattedDistanceText = intl.formatMessage(
|
||||
{ id: "Distance in km to city centre" },
|
||||
{ number: distanceToCentre }
|
||||
{ number: distanceToCentre / 1000 }
|
||||
)
|
||||
const lang = getLang()
|
||||
const formattedLocationText = `${streetAddress}, ${city} (${formattedDistanceText})`
|
||||
|
||||
@@ -104,7 +104,7 @@ export default function HotelCard({
|
||||
<Caption color="uiTextPlaceholder">
|
||||
{intl.formatMessage(
|
||||
{ id: "Distance in km to city centre" },
|
||||
{ number: hotelData.location.distanceToCentre }
|
||||
{ number: hotelData.location.distanceToCentre / 1000 }
|
||||
)}
|
||||
</Caption>
|
||||
</div>
|
||||
|
||||
@@ -69,7 +69,7 @@ export default async function HotelInfoCard({
|
||||
</Title>
|
||||
<div className={styles.hotelAddressDescription}>
|
||||
<Caption color="uiTextMediumContrast">
|
||||
{`${hotelAttributes.address.streetAddress}, ${hotelAttributes.address.city} ∙ ${hotelAttributes.location.distanceToCentre} ${intl.formatMessage({ id: "km to city center" })}`}
|
||||
{`${hotelAttributes.address.streetAddress}, ${hotelAttributes.address.city} ∙ ${hotelAttributes.location.distanceToCentre / 1000} ${intl.formatMessage({ id: "km to city center" })}`}
|
||||
</Caption>
|
||||
<Body color="uiTextHighContrast">
|
||||
{hotelAttributes.hotelContent.texts.descriptions.medium}
|
||||
|
||||
Reference in New Issue
Block a user