feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass
This commit is contained in:
@@ -86,23 +86,31 @@ export default async function SelectHotel({
|
||||
const convertedSearchParams = convertObjToSearchParams(selectHotelParams)
|
||||
const breadcrumbs = [
|
||||
{
|
||||
title: intl.formatMessage({ id: "Home" }),
|
||||
title: intl.formatMessage({
|
||||
defaultMessage: "Home",
|
||||
}),
|
||||
href: `/${params.lang}`,
|
||||
uid: "home-page",
|
||||
},
|
||||
{
|
||||
title: intl.formatMessage({ id: "Hotel reservation" }),
|
||||
title: intl.formatMessage({
|
||||
defaultMessage: "Hotel reservation",
|
||||
}),
|
||||
href: `/${params.lang}/hotelreservation`,
|
||||
uid: "hotel-reservation",
|
||||
},
|
||||
isAlternativeFor
|
||||
? {
|
||||
title: intl.formatMessage({ id: "Alternative hotels" }),
|
||||
title: intl.formatMessage({
|
||||
defaultMessage: "Alternative hotels",
|
||||
}),
|
||||
href: `${alternativeHotels(params.lang)}/?${convertedSearchParams}`,
|
||||
uid: "alternative-hotels",
|
||||
}
|
||||
: {
|
||||
title: intl.formatMessage({ id: "Select hotel" }),
|
||||
title: intl.formatMessage({
|
||||
defaultMessage: "Select hotel",
|
||||
}),
|
||||
href: `${selectHotel(params.lang)}/?${convertedSearchParams}`,
|
||||
uid: "select-hotel",
|
||||
},
|
||||
@@ -182,7 +190,9 @@ export default async function SelectHotel({
|
||||
<Subtitle>
|
||||
{isAlternativeFor
|
||||
? intl.formatMessage(
|
||||
{ id: "Alternatives for {value}" },
|
||||
{
|
||||
defaultMessage: "Alternatives for {value}",
|
||||
},
|
||||
{
|
||||
value: isAlternativeFor.name,
|
||||
}
|
||||
@@ -227,7 +237,9 @@ export default async function SelectHotel({
|
||||
altText={`Map of ${city.name} city center`}
|
||||
/>
|
||||
<Button wrapping size="medium" intent="text" theme="base">
|
||||
{intl.formatMessage({ id: "See map" })}
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "See map",
|
||||
})}
|
||||
<MaterialIcon
|
||||
icon="chevron_right"
|
||||
size={20}
|
||||
|
||||
Reference in New Issue
Block a user