add classes future/past to date list items
This commit is contained in:
@ -16,7 +16,11 @@ const DateListItem = ({ occurrence }: { occurrence: EventOccurrence }) => {
|
||||
const wholeCastle = occurrence.venue?.slug === "hele-huset";
|
||||
|
||||
return (
|
||||
<li className={styles.date}>
|
||||
<li
|
||||
className={`${styles.date} ${
|
||||
isTodayOrFuture(occurrence.start) ? styles.future : styles.past
|
||||
}`}
|
||||
>
|
||||
<div className={styles.time}>
|
||||
<span className={styles.day}>
|
||||
{formatExtendedDateTime(occurrence.start, true)}
|
||||
|
Reference in New Issue
Block a user