Merged in feat/SW-630-alerts-on-hotel-card (pull request #909)

Feat/SW-630 alerts on hotel card

Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
Pontus Dreij
2024-11-15 17:38:42 +00:00
3 changed files with 33 additions and 17 deletions

View File

@@ -44,23 +44,25 @@ export default function Alert({
<h2>{heading}</h2>
</Body>
) : null}
<Body className={styles.text}>
{text}
{phoneContact?.phoneNumber ? (
<>
<span> {phoneContact.displayText} </span>
<Link
color="burgundy"
href={`tel:${phoneContact.phoneNumber.replace(/ /g, "")}`}
>
{phoneContact.phoneNumber}
</Link>
{phoneContact.footnote ? (
<span>. ({phoneContact.footnote})</span>
) : null}
</>
) : null}
</Body>
{text ? (
<Body className={styles.text}>
{text}
{phoneContact?.phoneNumber ? (
<>
<span> {phoneContact.displayText} </span>
<Link
color="burgundy"
href={`tel:${phoneContact.phoneNumber.replace(/ /g, "")}`}
>
{phoneContact.phoneNumber}
</Link>
{phoneContact.footnote ? (
<span>. ({phoneContact.footnote})</span>
) : null}
</>
) : null}
</Body>
) : null}
</div>
{link ? (
<Link color="burgundy" href={link.url}>