Merged in fix/BOOK-486-hotjar (pull request #3046)

fix(BOOK-486): suppress hotjar firstname lastname and initials

* fix(BOOK-486): suppress hotjar firstname lastname and initials


Approved-by: Joakim Jäderberg
Approved-by: Anton Gunnarsson
This commit is contained in:
Bianca Widstam
2025-10-31 07:26:11 +00:00
parent 0e598e53e8
commit e2aeada23e
5 changed files with 17 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ export default async function UserBaseInfo({ user }: UserBaseInfoProps) {
/>
<div>
<Typography variant="Title/smLowCase">
<h3 className={styles.fullName}>
<h3 data-hj-suppress className={styles.fullName}>
{user.firstName} {user.lastName}
</h3>
</Typography>

View File

@@ -8,7 +8,7 @@ import Caption from "@scandic-hotels/design-system/Caption"
import { Divider } from "@scandic-hotels/design-system/Divider"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import Link from "@scandic-hotels/design-system/OldDSLink"
import Subtitle from "@scandic-hotels/design-system/Subtitle"
import { Typography } from "@scandic-hotels/design-system/Typography"
import { trpc } from "@scandic-hotels/trpc/client"
import useLang from "@/hooks/useLang"
@@ -47,12 +47,17 @@ export default function MyPagesMenuContent({
<FocusLock returnFocus={true}>
<nav className={styles.myPagesMenuContent}>
<div className={introClassName}>
<Subtitle type="two" className={styles.userName}>
{intl.formatMessage(
{ id: "myPages.hiFirstName", defaultMessage: "Hi {firstName}!" },
{ firstName: user.firstName }
)}
</Subtitle>
<Typography variant="Title/Subtitle/md" className={styles.userName}>
<p data-hj-suppress>
{intl.formatMessage(
{
id: "myPages.hiFirstName",
defaultMessage: "Hi {firstName}!",
},
{ firstName: user.firstName }
)}
</p>
</Typography>
{membershipLevel && membershipPoints ? (
<Caption className={styles.friendTypeWrapper}>
<span className={styles.friendType}>{membershipLevel.name}</span>

View File

@@ -179,7 +179,7 @@ export default function GuestDetails({
)}
<div className={styles.guest}>
<Typography variant="Body/Paragraph/mdBold">
<p>
<p data-hj-suppress>
{guest.firstName} {guest.lastName}
</p>
</Typography>