fix div in p error

This commit is contained in:
elisejakob
2024-06-18 12:12:25 +02:00
parent 90ada3e449
commit 6ba516bdc0

View File

@ -43,7 +43,7 @@ export const EventItem = ({
<div className={styles.text}>
<h1 className={styles.title}>{event.title}</h1>
{mode === "list" && nextOccurrence && (
<p className={styles.details}>
<div className={styles.details}>
{numOccurrences === 1 &&
nextOccurrence?.start &&
formatDate(nextOccurrence.start, commonDateTimeFormat)}
@ -55,7 +55,7 @@ export const EventItem = ({
<p>Flere datoer ({numOccurrences}) &rarr;</p>
</div>
)}
</p>
</div>
)}
{mode === "singular" &&
"occurrence" in event &&