parent
4828069800
commit
7ceffc3ba0
@ -1,12 +1,11 @@ |
||||
import { GetStaticProps } from "next"; |
||||
|
||||
import { getCurrentTerm, getProps } from "@/lib/events"; |
||||
import { getCurrentTerm, getEventsPageProps } from "@/lib/events"; |
||||
|
||||
import Term, { Props } from "./[year]/[term]/index"; |
||||
|
||||
export default Term; |
||||
|
||||
export const getStaticProps: GetStaticProps<Props> = async () => { |
||||
const curTerm = getCurrentTerm(); |
||||
return { props: await getProps(curTerm.year, curTerm.term) }; |
||||
return { props: await getEventsPageProps(getCurrentTerm()) }; |
||||
}; |
||||
|
Loading…
Reference in new issue