Skip to content

Commit 4d0120f

Browse files
committed
chore: remove explicit return
1 parent 282e166 commit 4d0120f

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/components/UpcomingEventsList.tsx

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,22 +150,20 @@ const UpcomingEventsList = () => {
150150
endDate,
151151
},
152152
idx
153-
) => {
154-
return (
155-
<EventCard
156-
key={idx}
157-
title={title}
158-
to={to}
159-
date={date}
160-
description={formattedDetails}
161-
location={location}
162-
isEven={(idx + 1) % 2 === 0}
163-
imageUrl={imageUrl}
164-
startDate={startDate}
165-
endDate={endDate}
166-
/>
167-
)
168-
}
153+
) => (
154+
<EventCard
155+
key={idx}
156+
title={title}
157+
to={to}
158+
date={date}
159+
description={formattedDetails}
160+
location={location}
161+
isEven={(idx + 1) % 2 === 0}
162+
imageUrl={imageUrl}
163+
startDate={startDate}
164+
endDate={endDate}
165+
/>
166+
)
169167
)}
170168
</Grid>
171169
</Box>

0 commit comments

Comments
 (0)