Skip to content

Commit af0c007

Browse files
Events tweaks (#6356)
Co-authored-by: Claudio W <[email protected]>
1 parent 8ad8886 commit af0c007

File tree

4 files changed

+12
-61
lines changed

4 files changed

+12
-61
lines changed

components/MDX/Calendar/UpcomingEvents.tsx renamed to components/MDX/Calendar/UpcomingMeetings.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import type { CalendarEvent } from '@/types';
99

1010
import styles from './calendar.module.css';
1111

12-
type GrouppedEntries = Record<string, Array<CalendarEvent>>;
12+
type GroupedEntries = Record<string, Array<CalendarEvent>>;
1313

14-
const UpcomingEvents: FC = async () => {
14+
const UpcomingMeetings: FC = async () => {
1515
const events = await getCalendarEvents(CALENDAR_NODEJS_ID);
1616

1717
const groupedEntries = events.filter(getZoomLink).reduce((acc, event) => {
@@ -25,7 +25,7 @@ const UpcomingEvents: FC = async () => {
2525
acc[datePerDay].push(event);
2626

2727
return acc;
28-
}, {} as GrouppedEntries);
28+
}, {} as GroupedEntries);
2929

3030
const sortedGroupedEntries = Object.entries(groupedEntries).sort(
3131
([dateA], [dateB]) => new Date(dateA).getTime() - new Date(dateB).getTime()
@@ -51,4 +51,4 @@ const UpcomingEvents: FC = async () => {
5151
));
5252
};
5353

54-
export default UpcomingEvents;
54+
export default UpcomingMeetings;

components/MDX/Calendar/UpcomingSummits.tsx

Lines changed: 0 additions & 38 deletions
This file was deleted.

next.mdx.use.mjs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import VerifyingBinariesLink from './components/Downloads/Release/VerifyingBinar
2020
import VersionDropdown from './components/Downloads/Release/VersionDropdown';
2121
import HomeDownloadButton from './components/Home/HomeDownloadButton';
2222
import Link from './components/Link';
23-
import UpcomingEvents from './components/MDX/Calendar/UpcomingEvents';
24-
import UpcomingSummits from './components/MDX/Calendar/UpcomingSummits';
23+
import UpcomingMeetings from './components/MDX/Calendar/UpcomingMeetings';
2524
import MDXCodeBox from './components/MDX/CodeBox';
2625
import MDXCodeTabs from './components/MDX/CodeTabs';
2726
import SearchPage from './components/MDX/SearchPage';
@@ -56,10 +55,8 @@ export const mdxComponents = {
5655
Button: Button,
5756
// Renders a Search Page
5857
SearchPage: SearchPage,
59-
// Renders an container for Upcoming Node.js Summits
60-
UpcomingSummits: UpcomingSummits,
61-
// Renders an container for Upcoming Node.js Events
62-
UpcomingEvents: UpcomingEvents,
58+
// Renders an container for Upcoming Node.js Meetings
59+
UpcomingMeetings: UpcomingMeetings,
6360
// Links with External Arrow
6461
LinkWithArrow: LinkWithArrow,
6562
// Group of components that enable you to select versions for Node.js

pages/en/about/get-involved/events.mdx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@ title: Upcoming Events
33
layout: about.hbs
44
---
55

6-
## Upcoming Node.js® Summits
6+
## Upcoming Events
77

8-
Interested in joining a [Collaborator Summit](/about/get-involved/collab-summit) hosted by the Node.js project?
9-
Check out the list below to find upcoming events.
8+
Node.js events are open and available to the public. Anyone is welcome to join and participate.
109

11-
Browse [previous Collaborator Summits & Events](/blog/events/) hosted by Node.js.
12-
13-
<UpcomingSummits />
14-
15-
---
16-
17-
## Upcoming Node.js® Events
10+
### Upcoming Node.js® Meetings
1811

1912
The Node.js project holds numerous meetings throughout the year to discuss and plan aspects of the project.
20-
These meetings are open and available to the public. Anyone is welcome to join and participate.
2113

22-
The following Events are upcoming in the next 7 days.
14+
The following meetings are upcoming in the next 7 days.
2315

24-
<UpcomingEvents />
16+
<UpcomingMeetings />

0 commit comments

Comments
 (0)