Add [event].tsx page #153
Merged
a258wang
merged 7 commits from feat/event-info-page
into main
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'feat/event-info-page'
Deleting a branch is permanent. It CANNOT be undone. Continue?
This is the
[event].tsx
page that displays a single event, with a couple of sample events incontent/events
for testing purposes.Closes #114
[event].tsx pageto Add [event].tsx page 2 years agoawait Promise.all(
years.map(async (year) => {
const termsInYear = await getEventTermsByYear(year);
return termsInYear.map((term) => ({ year, term }));
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.Just 1 nit-pick, LGTM otherwise!
Make sure to delete the markdown files before merging!!
2b186fc162
to0b62d2810e
2 years ago6f24b266eb
into main 2 years agoReviewers
6f24b266eb
.