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 s from './error.module.css'
|
||||||
|
|
||||||
|
import Link from 'next/link'
|
||||||
|
|
||||||
export const NotFound: React.FC = () => (
|
export const NotFound: React.FC = () => (
|
||||||
<section className={s.section}>
|
<section className={s.section}>
|
||||||
<div>
|
<div>
|
||||||
@@ -7,6 +9,10 @@ export const NotFound: React.FC = () => (
|
|||||||
<img src="/static/graphics/skull.jpg" />
|
<img src="/static/graphics/skull.jpg" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div><a href="/">На главную</a></div>
|
<div>
|
||||||
|
<Link href={'/'}>
|
||||||
|
<a>На главную</a>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user