Skip to content

Commit fa59190

Browse files
committed
chore: refactor to
1 parent 420731d commit fa59190

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/EventCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const clearStyles = {
1717

1818
export type EventCardProps = {
1919
title: string
20-
to: string
20+
href: string
2121
date: string
2222
startDate: string
2323
endDate: string
@@ -29,7 +29,7 @@ export type EventCardProps = {
2929

3030
const EventCard = ({
3131
title,
32-
to,
32+
href,
3333
description,
3434
className,
3535
location,
@@ -119,7 +119,7 @@ const EventCard = ({
119119
</Box>
120120
</Box>
121121
<Box padding={4} paddingTop={0} width={"100%"}>
122-
<ButtonLink href={to} width={"100%"} variant="outline">
122+
<ButtonLink href={href} width={"100%"} variant="outline">
123123
{t("page-community-upcoming-events-view-event")}
124124
</ButtonLink>
125125
</Box>

src/components/UpcomingEventsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const UpcomingEventsList = () => {
156156
<EventCard
157157
key={idx}
158158
title={title}
159-
to={to || href}
159+
href={to || href}
160160
date={date}
161161
description={formattedDetails}
162162
location={location}

0 commit comments

Comments
 (0)