feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass

This commit is contained in:
Michael Zetterberg
2025-02-07 06:51:36 +01:00
parent e22fc1f3c8
commit 440e1f92df
393 changed files with 4839 additions and 1554 deletions

View File

@@ -44,7 +44,8 @@ export default async function HotelInfoCard({ hotel }: HotelInfoCardProps) {
<Caption color="uiTextMediumContrast">
{intl.formatMessage(
{
id: "{address}, {city} ∙ {distanceToCityCenterInKm} km to city center",
defaultMessage:
"{address}, {city} ∙ {distanceToCityCenterInKm} km to city center",
},
{
address: hotel.address.streetAddress,
@@ -64,7 +65,9 @@ export default async function HotelInfoCard({ hotel }: HotelInfoCardProps) {
<div className={styles.facilities}>
<div className={styles.facilityList}>
<Body textTransform="bold" className={styles.facilityTitle}>
{intl.formatMessage({ id: "At the hotel" })}
{intl.formatMessage({
defaultMessage: "At the hotel",
})}
</Body>
{sortedFacilities?.map((facility) => {
const Icon = (
@@ -79,7 +82,9 @@ export default async function HotelInfoCard({ hotel }: HotelInfoCardProps) {
})}
</div>
<ReadMore
label={intl.formatMessage({ id: "See all amenities" })}
label={intl.formatMessage({
defaultMessage: "See all amenities",
})}
hotelId={hotel.operaId}
hotel={hotel}
showCTA={false}