File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const clearStyles = {
17
17
18
18
export type EventCardProps = {
19
19
title : string
20
- href : string
20
+ to : string
21
21
date : string
22
22
startDate : string
23
23
endDate : string
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ const UpcomingEventsList = () => {
143
143
{
144
144
title,
145
145
to,
146
+ href,
146
147
formattedDetails,
147
148
date,
148
149
location,
@@ -155,7 +156,7 @@ const UpcomingEventsList = () => {
155
156
< EventCard
156
157
key = { idx }
157
158
title = { title }
158
- to = { to }
159
+ to = { to || href }
159
160
date = { date }
160
161
description = { formattedDetails }
161
162
location = { location }
@@ -185,7 +186,6 @@ const UpcomingEventsList = () => {
185
186
marginTop = "5"
186
187
paddingY = "8"
187
188
>
188
-
189
189
< Button onClick = { loadMoreEvents } >
190
190
{ t ( "page-community-upcoming-events-load-more" ) }
191
191
</ Button >
You can’t perform that action at this time.
0 commit comments