use divs for leads to fix hydration issue

This commit is contained in:
2024-07-14 19:31:23 +02:00
parent 98df8f7b2f
commit 9b7b63f679
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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>
); );

View File

@ -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 grisefest. Lykke til videre.</p> <div className="lead">Denne siden er grisefest. Lykke til videre.</div>
</div> </div>
</main> </main>
); );