use next/link in NotFound
This commit is contained in:
1 parent
49e06abc79
commit
69904cd2dd
1 file changed
+7
-1
@@ -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>
|
||||
)
|
||||
Reference in new issue
Block a user