Skip to content

Commit

Permalink
feat(web): Defer outbound link tracking
Browse files Browse the repository at this point in the history
Defers outbound link tracking to GTAG.
  • Loading branch information
langri-sha committed Jun 18, 2024
1 parent 222de81 commit 6f7b530
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 57 deletions.
15 changes: 3 additions & 12 deletions apps/web/src/components/header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import styled from '@emotion/styled'

import { animations, colors, fonts, layers, media } from '../../styles'
import { Link } from '../link'
import { Docker, Github, Keybase, Npm, Stackoverflow } from './icons'

export const Header = () => (
Expand Down Expand Up @@ -42,17 +41,9 @@ export const Header = () => (
],
] as const
).map(([name, href, title, icon]) => (
<EnhancedLink
key={name}
href={href}
title={title}
target="_blank"
eventCategory="Social Links"
eventAction="click"
eventLabel={name}
>
<Link key={name} href={href} title={title}>
{icon}
</EnhancedLink>
</Link>
))}
</Nav>
</Root>
Expand Down Expand Up @@ -90,7 +81,7 @@ const Nav = styled.nav`
justify-content: center;
`

const EnhancedLink: typeof Link = styled(Link)`
const Link = styled.a`
color: ${colors.text};
font-size: 3.2rem;
text-decoration: none;
Expand Down
1 change: 0 additions & 1 deletion apps/web/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './drone'
export * from './header'
export * from './link'
export * from './scene'
44 changes: 0 additions & 44 deletions apps/web/src/components/link.tsx

This file was deleted.

0 comments on commit 6f7b530

Please sign in to comment.