Add [event].tsx page #153

Merged
a258wang merged 7 commits from feat/event-info-page into main 2021-08-18 22:27:24 -04:00
Owner

This is the [event].tsx page that displays a single event, with a couple of sample events in content/events for testing purposes.

Closes #114

This is the `[event].tsx` page that displays a single event, with a couple of sample events in `content/events` for testing purposes. Closes #114
a258wang added 4 commits 2021-08-17 23:13:31 -04:00
a258wang changed title from [event].tsx page to Add [event].tsx page 2021-08-17 23:14:00 -04:00
a3thakra reviewed 2021-08-18 19:12:06 -04:00
@ -0,0 +48,4 @@
await Promise.all(
years.map(async (year) => {
const termsInYear = await getEventTermsByYear(year);
return termsInYear.map((term) => ({ year, term }));
Owner

You already have access to the terms here, might as well get all the events of that term here! That will result in a 3d array, but we don't really care because .flat() will convert that to a 1d array.

You already have access to the terms here, might as well get all the events of that term here! That will result in a 3d array, but we don't really care because `.flat()` will convert that to a 1d array.
a3thakra approved these changes 2021-08-18 19:22:13 -04:00
a3thakra left a comment
Owner

Just 1 nit-pick, LGTM otherwise!

Make sure to delete the markdown files before merging!!

Just 1 nit-pick, LGTM otherwise! Make sure to delete the markdown files before merging!!
a258wang added 1 commit 2021-08-18 21:34:05 -04:00
continuous-integration/drone/push Build is passing Details
0b62d2810e
Streamline event info page getStaticPaths
a258wang force-pushed feat/event-info-page from 2b186fc162 to 0b62d2810e 2021-08-18 21:46:45 -04:00 Compare
a258wang added 1 commit 2021-08-18 21:48:00 -04:00
a258wang added 1 commit 2021-08-18 22:03:10 -04:00
continuous-integration/drone/push Build is passing Details
9881caf828
Merge branch 'main' into feat/event-info-page
a258wang merged commit 6f24b266eb into main 2021-08-18 22:27:24 -04:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: www/www-new#153
No description provided.