fi(SW-188): implement PR feedback
This commit is contained in:
@@ -30,8 +30,11 @@ export default async function IntroSection({
|
||||
)
|
||||
const lang = getLang()
|
||||
const formattedLocationText = `${streetAddress}, ${city} (${formattedDistanceText})`
|
||||
const hasTripAdvisorData =
|
||||
tripAdvisor?.rating && tripAdvisor?.numberOfReviews && tripAdvisor?.webUrl
|
||||
const hasTripAdvisorData = !!(
|
||||
tripAdvisor?.rating &&
|
||||
tripAdvisor?.numberOfReviews &&
|
||||
tripAdvisor?.webUrl
|
||||
)
|
||||
const formattedTripAdvisorText = hasTripAdvisorData
|
||||
? intl.formatMessage(
|
||||
{ id: "Tripadvisor reviews" },
|
||||
|
||||
@@ -35,11 +35,11 @@ export function RoomCard({
|
||||
return (
|
||||
<article className={styles.roomCard}>
|
||||
<button className={styles.imageWrapper} onClick={handleImageClick}>
|
||||
{badgeTextTransKey && (
|
||||
<span className={styles.badge}>
|
||||
{intl.formatMessage({ id: badgeTextTransKey })}
|
||||
</span>
|
||||
)}
|
||||
{/* {badgeTextTransKey && ( */}
|
||||
{/* <span className={styles.badge}> */}
|
||||
{/* {intl.formatMessage({ id: badgeTextTransKey })} */}
|
||||
{/* </span> */}
|
||||
{/* )} */}
|
||||
<span className={styles.imageCount}>
|
||||
<ImageIcon color="white" />
|
||||
{images.length}
|
||||
@@ -67,9 +67,7 @@ export function RoomCard({
|
||||
variant="underscored"
|
||||
onClick={handleRoomCtaClick}
|
||||
>
|
||||
{intl.formatMessage({
|
||||
id: "hotelPages.rooms.roomCard.seeRoomDetails",
|
||||
})}
|
||||
{intl.formatMessage({ id: "See room details" })}
|
||||
</Link>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user