diff --git a/astro/src/components/web/UpcomingEvents.astro b/astro/src/components/web/UpcomingEvents.astro index fee6fd1..a368620 100644 --- a/astro/src/components/web/UpcomingEvents.astro +++ b/astro/src/components/web/UpcomingEvents.astro @@ -1,6 +1,7 @@ --- import CalendarIcon from '@/icons/CalendarIcon.astro'; import { Image } from 'astro:assets'; +import { upcomingEvent as UpcomingEvent } from './subcomponents/UpcomingEvent'; interface Props { upcomingEvents: UpcomingEventsComponent; @@ -24,7 +25,7 @@ const upcomingEvents = Astro.props.upcomingEvents; alt="" /> -
{event.startDate}
) }{props.event.startDate} - {props.event.endDate}
+ ) : ( +{props.event.startDate}
+ ) } +