feat(SW-543): remove div

This commit is contained in:
Fredrik Thorsson
2025-01-02 15:36:51 +01:00
parent aee238761f
commit 034fff59bd

View File

@@ -41,21 +41,19 @@ export default async function ContactRow({ contact }: ContactRowProps) {
return ( return (
<div className={styles.wrapper}> <div className={styles.wrapper}>
<div> <Body color="burgundy" textTransform="bold">
<Body color="burgundy" textTransform="bold"> {contact.display_text}
{contact.display_text} </Body>
</Body> <Link
<Link className={styles.link}
className={styles.link} href={openableLink}
href={openableLink} variant="underscored"
variant="underscored" color="burgundy"
color="burgundy" size="small"
size="small" >
> {Icon ? <Icon width="20" height="20" color="burgundy" /> : null}
{Icon ? <Icon width="20" height="20" color="burgundy" /> : null} {val}
{val} </Link>
</Link>
</div>
{footnote && contact.contact_field.includes("phone") && ( {footnote && contact.contact_field.includes("phone") && (
<Footnote color="burgundy">{footnote}</Footnote> <Footnote color="burgundy">{footnote}</Footnote>
)} )}