Skip to content

Commit 1dc30bb

Browse files
committed
use next/link instead of <a>
1 parent 1c744ef commit 1dc30bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/header.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import {Fragment} from 'react';
44
import {HamburgerMenuIcon} from '@radix-ui/react-icons';
55
import Image from 'next/image';
6+
import Link from 'next/link';
67

78
import SentryLogoSVG from 'sentry-docs/logos/sentry-logo-dark.svg';
89

@@ -44,7 +45,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
4445
</label>
4546
</button>
4647
)}
47-
<a
48+
<Link
4849
href="/"
4950
title="Sentry error monitoring"
5051
className="flex flex-shrink-0 items-center lg:w-[calc(var(--sidebar-width,300px)-2rem)] text-2xl font-medium text-[var(--foreground)]"
@@ -58,7 +59,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
5859
/>
5960
</div>
6061
Docs
61-
</a>
62+
</Link>
6263
{!noSearch && (
6364
<div className="hidden md:flex justify-center lg:justify-start w-full px-6">
6465
<Search path={pathname} searchPlatforms={searchPlatforms} showChatBot />

0 commit comments

Comments
 (0)