Add /events page (#159)
Closes #111 Blocked by !158 Co-authored-by: Jared He <66887902+jaredjhe@users.noreply.github.com> Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca> Reviewed-on: #159 Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca> Co-authored-by: j285he <j285he@localhost> Co-committed-by: j285he <j285he@localhost>pull/188/head
parent
e548bd9c5a
commit
5933dd03b8
@ -0,0 +1,11 @@ |
||||
import { GetStaticProps } from "next"; |
||||
|
||||
import { getCurrentTerm, getEventsPageProps } from "@/lib/events"; |
||||
|
||||
import Term, { Props } from "./[year]/[term]/index"; |
||||
|
||||
export default Term; |
||||
|
||||
export const getStaticProps: GetStaticProps<Props> = async () => { |
||||
return { props: await getEventsPageProps(getCurrentTerm()) }; |
||||
}; |
Loading…
Reference in new issue