use divs for leads to fix hydration issue
This commit is contained in:
@ -56,7 +56,7 @@ export default async function Page({ params }: { params: { slug: string } }) {
|
|||||||
</p>
|
</p>
|
||||||
<h1 className="news-title">{news.title}</h1>
|
<h1 className="news-title">{news.title}</h1>
|
||||||
{news.lead && (
|
{news.lead && (
|
||||||
<p className="lead" dangerouslySetInnerHTML={{ __html: news.lead }} />
|
<div className="lead" dangerouslySetInnerHTML={{ __html: news.lead }} />
|
||||||
)}
|
)}
|
||||||
{featuredImage && (
|
{featuredImage && (
|
||||||
<ImageFigure
|
<ImageFigure
|
||||||
|
@ -5,9 +5,9 @@ function ErrorPage() {
|
|||||||
<main className="site-main" id="main">
|
<main className="site-main" id="main">
|
||||||
<div>
|
<div>
|
||||||
<h1>500: En feil har oppstått</h1>
|
<h1>500: En feil har oppstått</h1>
|
||||||
<p className="lead">
|
<div className="lead">
|
||||||
Her gikk det skikkelig skeis i datamaskinen. Lykke til videre.
|
Her gikk det skikkelig skeis i datamaskinen. Lykke til videre.
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
@ -3,7 +3,7 @@ function NotFoundPage() {
|
|||||||
<main className="site-main" id="main">
|
<main className="site-main" id="main">
|
||||||
<div>
|
<div>
|
||||||
<h1>404: Side ikke funnet</h1>
|
<h1>404: Side ikke funnet</h1>
|
||||||
<p className="lead">Denne siden er på grisefest. Lykke til videre.</p>
|
<div className="lead">Denne siden er på grisefest. Lykke til videre.</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user