Merged in fix/hotjar-suppress-fixes (pull request #1192)

fix: hotjar - suppress personal data

* fix: hotjar - suppress personal data

* More suppressing
This commit is contained in:
Linus Flood
2025-02-04 06:47:36 +00:00
parent e7fbcd8a80
commit 0800c877a3
6 changed files with 17 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ export default async function MembershipNumber({
</Caption> </Caption>
<span className={styles.icon}> <span className={styles.icon}>
<Caption className={styles.icon} color="pale" asChild> <Caption className={styles.icon} color="pale" asChild>
<code> <code data-hj-suppress>
{membership?.membershipNumber ?? intl.formatMessage({ id: "N/A" })} {membership?.membershipNumber ?? intl.formatMessage({ id: "N/A" })}
</code> </code>
</Caption> </Caption>

View File

@@ -52,7 +52,7 @@ export default async function TopMenu({
className={styles.sessionLink} className={styles.sessionLink}
prefetch={false} prefetch={false}
> >
{capitalize(user.firstName)} <span data-hj-suppress>{capitalize(user.firstName)}</span>
</Link> </Link>
) : null} ) : null}
<div className={styles.loginSeparator} /> <div className={styles.loginSeparator} />

View File

@@ -20,5 +20,9 @@ export default function Avatar({ image, initials }: AvatarProps) {
</Footnote> </Footnote>
) )
} }
return <span className={classNames.join(" ")}>{element}</span> return (
<span data-hj-suppress className={classNames.join(" ")}>
{element}
</span>
)
} }

View File

@@ -49,7 +49,7 @@ export default function MyPagesMenu({
> >
<Avatar initials={getInitials(user.firstName, user.lastName)} /> <Avatar initials={getInitials(user.firstName, user.lastName)} />
<Body textTransform="bold" color="baseTextHighContrast" asChild> <Body textTransform="bold" color="baseTextHighContrast" asChild>
<span> <span data-hj-suppress>
{intl.formatMessage( {intl.formatMessage(
{ id: "Hi {firstName}!" }, { id: "Hi {firstName}!" },
{ firstName: user.firstName } { firstName: user.firstName }

View File

@@ -14,7 +14,9 @@ export default function Avatar({
const initials = getInitials(firstName, lastName) const initials = getInitials(firstName, lastName)
return ( return (
<span className={styles.avatar}> <span className={styles.avatar}>
<span className={styles.avatarInitialsText}>{initials}</span> <span data-hj-suppress className={styles.avatarInitialsText}>
{initials}
</span>
</span> </span>
) )
} }

View File

@@ -18,6 +18,7 @@ export default function Title({
level = "h1", level = "h1",
textAlign, textAlign,
textTransform, textTransform,
...rest
}: HeadingProps) { }: HeadingProps) {
if (checkForEmptyChildren(children) === 0) { if (checkForEmptyChildren(children) === 0) {
return null return null
@@ -30,5 +31,9 @@ export default function Title({
textTransform, textTransform,
type: as ?? level, type: as ?? level,
}) })
return <Hx className={classNames}>{children}</Hx> return (
<Hx {...rest} className={classNames}>
{children}
</Hx>
)
} }