Fix next/link error after update
This commit is contained in:
+10
-12
@@ -5,20 +5,18 @@ import Image from 'next/image'
|
||||
export default function Custom404() {
|
||||
return (
|
||||
<Container maxWidth='sm'>
|
||||
<Link href='/'>
|
||||
<a>
|
||||
<Image
|
||||
alt='Logo OKI'
|
||||
width={512}
|
||||
height={512}
|
||||
src='/logo-512x512.png'
|
||||
quality={20}
|
||||
/>
|
||||
</a>
|
||||
<Link passHref href='/'>
|
||||
<Image
|
||||
alt='Logo OKI'
|
||||
width={512}
|
||||
height={512}
|
||||
src='/logo-512x512.png'
|
||||
quality={20}
|
||||
/>
|
||||
</Link>
|
||||
<Typography variant='h2' align='center' >404 - La page n’existe pas 😔</Typography>
|
||||
<Link href='/'>
|
||||
<a style={{textDecoration: 'none'}}><Typography style={{marginTop: '1em', color: 'green'}} variant='h3' align='center'>Retourner à l’accueil 🏡</Typography></a>
|
||||
<Link passHref href='/' style={{textDecoration: 'none'}}>
|
||||
<Typography style={{marginTop: '1em', color: 'green'}} variant='h3' align='center'>Retourner à l’accueil 🏡</Typography>
|
||||
</Link>
|
||||
</Container>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user