Skip to content

Commit b39c386

Browse files
committed
Fix warnings
1 parent fca442e commit b39c386

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

src/app/components/footer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import GitHub from '@/app/components/icons/github';
22
import X from '@/app/components/icons/x';
3+
import Link from 'next/link';
34
// import NavLink from '@/app/components/NavLink';
45
//
56
// const navLinks: Record<string, string>[] = [
@@ -55,14 +56,14 @@ export default function Footer() {
5556
{socialLinks.map((link) => {
5657
const Icon = link.icon;
5758
return (
58-
<a
59+
<Link
5960
key={link.label}
6061
href={link.href}
6162
className="transition-colors hover:fill-main"
6263
aria-label={link.label}
6364
>
6465
<Icon className={`size-4 dark:fill-white`} />
65-
</a>
66+
</Link>
6667
);
6768
})}
6869
</div>

src/app/global-error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function GlobalError({
1414
}, [error]);
1515

1616
return (
17-
<html>
17+
<html lang="en">
1818
<body>
1919
{/* `NextError` is the default Next.js error page component. Its type
2020
definition requires a `statusCode` prop. However, since the App Router

src/components/ui/pagination.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ function Pagination({ className, ...props }: React.ComponentProps<'nav'>) {
1111
return (
1212
<nav
1313
data-slot="pagination"
14-
role="navigation"
1514
aria-label="pagination"
1615
className={cn('mx-auto flex w-full justify-center', className)}
1716
{...props}

src/instrumentation-client.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
// The added config here will be used whenever a users loads a page in their browser.
33
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
44

5-
import * as Sentry from '@sentry/nextjs';
5+
import {
6+
captureRouterTransitionStart,
7+
init,
8+
replayIntegration,
9+
} from '@sentry/nextjs';
610
import { env } from '@/lib/env';
711

8-
Sentry.init({
12+
init({
913
dsn: env.NEXT_PUBLIC_SENTRY_DSN,
1014

1115
// Add optional integrations for additional features
12-
integrations: [Sentry.replayIntegration()],
16+
integrations: [replayIntegration()],
1317

1418
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
1519
tracesSampleRate: 0.1,
@@ -27,4 +31,4 @@ Sentry.init({
2731
});
2832

2933
// noinspection JSUnusedGlobalSymbols
30-
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;
34+
export const onRouterTransitionStart = captureRouterTransitionStart;

src/mdx-components.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ function HeadingLink({
2424
className={`invisible absolute top-1/2 -left-4 size-6 -translate-1/2 group-hover/title:visible`}
2525
aria-hidden={true}
2626
/>
27-
<a href={`#${slug}`} key={`link-${slug}`}>
27+
<Link href={`#${slug}`} key={`link-${slug}`}>
2828
{children}
29-
</a>
29+
</Link>
3030
</>
3131
);
3232
}
@@ -180,15 +180,17 @@ function CustomLink(props: AnchorHTMLAttributes<HTMLAnchorElement>) {
180180

181181
if (href.startsWith('#')) {
182182
return (
183-
<a
183+
<Link
184+
href={href}
184185
className={`font-mono text-main underline transition-colors hover:text-main/80`}
185186
{...props}
186187
/>
187188
);
188189
}
189190

190191
return (
191-
<a
192+
<Link
193+
href={href}
192194
className={`font-mono text-main underline transition-colors hover:text-main/80`}
193195
target="_blank"
194196
rel="noopener noreferrer"

0 commit comments

Comments
 (0)