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() {
|
export default function Custom404() {
|
||||||
return (
|
return (
|
||||||
<Container maxWidth='sm'>
|
<Container maxWidth='sm'>
|
||||||
<Link href='/'>
|
<Link passHref href='/'>
|
||||||
<a>
|
<Image
|
||||||
<Image
|
alt='Logo OKI'
|
||||||
alt='Logo OKI'
|
width={512}
|
||||||
width={512}
|
height={512}
|
||||||
height={512}
|
src='/logo-512x512.png'
|
||||||
src='/logo-512x512.png'
|
quality={20}
|
||||||
quality={20}
|
/>
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</Link>
|
</Link>
|
||||||
<Typography variant='h2' align='center' >404 - La page n’existe pas 😔</Typography>
|
<Typography variant='h2' align='center' >404 - La page n’existe pas 😔</Typography>
|
||||||
<Link href='/'>
|
<Link passHref href='/' style={{textDecoration: 'none'}}>
|
||||||
<a style={{textDecoration: 'none'}}><Typography style={{marginTop: '1em', color: 'green'}} variant='h3' align='center'>Retourner à l’accueil 🏡</Typography></a>
|
<Typography style={{marginTop: '1em', color: 'green'}} variant='h3' align='center'>Retourner à l’accueil 🏡</Typography>
|
||||||
</Link>
|
</Link>
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
|
|||||||
+8
-10
@@ -5,16 +5,14 @@ import Image from 'next/image'
|
|||||||
export default function Custom500() {
|
export default function Custom500() {
|
||||||
return (
|
return (
|
||||||
<Container maxWidth='sm'>
|
<Container maxWidth='sm'>
|
||||||
<Link href='/'>
|
<Link passHref href='/'>
|
||||||
<a>
|
<Image
|
||||||
<Image
|
alt='Logo OKI'
|
||||||
alt='Logo OKI'
|
width={512}
|
||||||
width={512}
|
height={512}
|
||||||
height={512}
|
src='/logo-512x512.png'
|
||||||
src='/logo-512x512.png'
|
quality={20}
|
||||||
quality={20}
|
/>
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</Link>
|
</Link>
|
||||||
<Typography variant='h2' align='center' >500 - Erreur du serveur 🥺</Typography>
|
<Typography variant='h2' align='center' >500 - Erreur du serveur 🥺</Typography>
|
||||||
<Typography style={{marginTop: '1em', color: 'green'}} variant='h3' align='center'>Nous mettons tout en œuvre pour rétablir le site dans les plus brefs délais 💪🏾</Typography>
|
<Typography style={{marginTop: '1em', color: 'green'}} variant='h3' align='center'>Nous mettons tout en œuvre pour rétablir le site dans les plus brefs délais 💪🏾</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user