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