use next/link in NotFound

This commit is contained in:
tmshv committed 2022-09-06 14:04:59 +03:00
1 parent 49e06abc79
commit 69904cd2dd
1 file changed
+7 -1
+7 -1
View File
@@ -1,5 +1,7 @@
import s from './error.module.css'
import Link from 'next/link'
export const NotFound: React.FC = () => (
<section className={s.section}>
<div>
@@ -7,6 +9,10 @@ export const NotFound: React.FC = () => (
<img src="/static/graphics/skull.jpg" />
</div>
<div><a href="/">На главную</a></div>
<div>
<Link href={'/'}>
<a>На главную</a>
</Link>
</div>
</section>
)