Skip to content

Commit

Permalink
Merge pull request #166 from AppQuality/tracking-attributes
Browse files Browse the repository at this point in the history
Update UserInfo component with data-tracking attributes
  • Loading branch information
iacopolea authored Jan 23, 2024
2 parents df615c5 + b896193 commit aefece6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/stories/header/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export const UserInfo = ({
<b>T{user.id}</b>
</Text>
</Text>
<Button size="medium" kind="link" onClick={onLogout}>
<Button
size="medium"
kind="link"
onClick={onLogout}
data-tracking="logout-cta"
>
<span className="sr-only">Logout</span>
<span className="aq-text-danger">
<BoxArrowRight aria-hidden="true" />
Expand All @@ -48,6 +53,7 @@ export const UserInfo = ({
size="medium"
kind="link"
onClick={onLogin}
data-tracking="header-login-link"
>
{loginText}
</Button>
Expand Down

0 comments on commit aefece6

Please sign in to comment.