feat(SW-1888): Removed link from tripadvisor text on hotel pages
* feat(SW-1888): Removed link from tripadvisor text on hotel pages Approved-by: Fredrik Thorsson
This commit is contained in:
@@ -30,9 +30,7 @@ export default async function IntroSection({
|
||||
|
||||
const formattedLocationText = `${streetAddress}, ${city} (${formattedDistanceText})`
|
||||
const hasTripAdvisorData = !!(
|
||||
tripAdvisor?.rating &&
|
||||
tripAdvisor?.numberOfReviews &&
|
||||
tripAdvisor?.webUrl
|
||||
tripAdvisor?.rating && tripAdvisor?.numberOfReviews
|
||||
)
|
||||
const formattedTripAdvisorText = hasTripAdvisorData
|
||||
? intl.formatMessage(
|
||||
@@ -53,18 +51,11 @@ export default async function IntroSection({
|
||||
</Typography>
|
||||
</div>
|
||||
<Body color="uiTextMediumContrast">{formattedLocationText}</Body>
|
||||
{hasTripAdvisorData && (
|
||||
<Link
|
||||
className={styles.introLink}
|
||||
target="_blank"
|
||||
variant="icon"
|
||||
textDecoration="underline"
|
||||
color="peach80"
|
||||
href={tripAdvisor.webUrl}
|
||||
>
|
||||
<TripAdvisorIcon color="peach80" />
|
||||
{formattedTripAdvisorText && (
|
||||
<span className={styles.tripAdvisorText}>
|
||||
<TripAdvisorIcon />
|
||||
{formattedTripAdvisorText}
|
||||
</Link>
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div className={styles.subtitleContent}>
|
||||
|
||||
@@ -15,6 +15,18 @@
|
||||
gap: var(--Spacing-x-one-and-half);
|
||||
}
|
||||
|
||||
.tripAdvisorText {
|
||||
display: flex;
|
||||
gap: var(--Space-x05);
|
||||
align-items: center;
|
||||
color: var(--Text-Interactive-Secondary);
|
||||
}
|
||||
|
||||
.tripAdvisorText svg,
|
||||
.tripAdvisorText svg * {
|
||||
fill: var(--Text-Interactive-Secondary);
|
||||
}
|
||||
|
||||
.introLink {
|
||||
text-decoration-color: var(--Scandic-Peach-80);
|
||||
width: fit-content;
|
||||
|
||||
Reference in New Issue
Block a user