fi(SW-188): implement PR feedback

This commit is contained in:
Chuma McPhoy
2024-08-20 17:23:23 +02:00
parent f3d32033a5
commit f4586ba35b
6 changed files with 23 additions and 19 deletions

View File

@@ -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" },

View File

@@ -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>