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