Skip to content

Commit a179d99

Browse files
committed
change requests
1 parent 54ae23e commit a179d99

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/UpcomingEventsList.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ import Translation from "@/components/Translation"
77

88
import { trackCustomEvent } from "@/lib/utils/matomo"
99

10-
import CommunityConferences from "../data/community-events"
10+
import communityConferences from "../data/community-events"
1111

1212
import { Button } from "./Buttons"
1313
import EventCard from "./EventCard"
1414
import InfoBanner from "./InfoBanner"
1515
import InlineLink from "./Link"
1616

17-
type OrderedUpcomingEventType = CommunityConference & {
17+
type OrderedUpcomingEvent = CommunityConference & {
1818
date: string
1919
formattedDetails: string
2020
}
2121

2222
const UpcomingEventsList = () => {
2323
const eventsPerLoad = 10
2424
const [orderedUpcomingEvents, setOrderedUpcomingEvents] = useState<
25-
OrderedUpcomingEventType[]
25+
OrderedUpcomingEvent[]
2626
>([])
2727
const [maxRange, setMaxRange] = useState<number>(eventsPerLoad)
2828

@@ -37,7 +37,7 @@ const UpcomingEventsList = () => {
3737
}
3838

3939
useEffect(() => {
40-
const eventsList: CommunityConference[] = [...CommunityConferences]
40+
const eventsList: CommunityConference[] = [...communityConferences]
4141
const yesterday = new Date()
4242
yesterday.setDate(yesterday.getDate() - 1)
4343

src/data/community-events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CommunityConference } from "@/lib/types"
22

3-
const CommunityConferences: CommunityConference[] = [
3+
const communityConferences: CommunityConference[] = [
44
{
55
title: "ETH Cinco de Mayo",
66
startDate: "2024-02-02",
@@ -392,4 +392,4 @@ const CommunityConferences: CommunityConference[] = [
392392
},
393393
]
394394

395-
export default CommunityConferences
395+
export default communityConferences

0 commit comments

Comments
 (0)