Skip to content

Commit df3f7cd

Browse files
committed
Linting
1 parent 0d6db38 commit df3f7cd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/app/pages/[level1]/[level2]/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { GetStaticProps } from 'next';
22
import Head from 'next/head';
3+
import Link from 'next/link';
34
import ReactMarkdown from 'react-markdown';
45
import rehypeRaw from 'rehype-raw';
56
import Layout from '../../../components/Layout/Main';
@@ -90,12 +91,12 @@ export default function DocSubPage({ content, menu, metadata, current, config }:
9091
<br />
9192
Please check the URL or return to the homepage.
9293
</p>
93-
<a
94+
<Link
9495
href="/"
9596
className="rounded-md bg-blue-600 px-6 py-2 font-medium text-white shadow-md transition-colors duration-200 hover:bg-blue-700"
9697
>
9798
Go Home
98-
</a>
99+
</Link>
99100
</div>
100101
</div>
101102
);

src/app/pages/[level1]/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { GetStaticProps } from 'next';
22
import Head from 'next/head';
3+
import Link from 'next/link';
34
import ReactMarkdown from 'react-markdown';
45
import rehypeRaw from 'rehype-raw';
56
import Layout from '../../components/Layout/Main';
@@ -81,12 +82,12 @@ export default function DocPage({ content, menu, metadata, current, config }: Do
8182
<br />
8283
Please check the URL or return to the homepage.
8384
</p>
84-
<a
85+
<Link
8586
href="/"
8687
className="rounded-md bg-blue-600 px-6 py-2 font-medium text-white shadow-md transition-colors duration-200 hover:bg-blue-700"
8788
>
8889
Go Home
89-
</a>
90+
</Link>
9091
</div>
9192
</div>
9293
);

0 commit comments

Comments
 (0)