Function renaming
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
7afb956009
commit
2798efc221
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { Link } from "../../../components/Link";
|
import { Link } from "../../../components/Link";
|
||||||
import { getYears, getTermsByYear } from "../../../lib/events";
|
import { getEventYears, getEventTermsByYear } from "../../../lib/events";
|
||||||
|
|
||||||
import styles from "./year.module.css";
|
import styles from "./year.module.css";
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ export async function getStaticPaths(): Promise<{
|
||||||
}[];
|
}[];
|
||||||
fallback: boolean;
|
fallback: boolean;
|
||||||
}> {
|
}> {
|
||||||
const years = await getYears();
|
const years = await getEventYears();
|
||||||
const paths = years.map((curYear) => ({
|
const paths = years.map((curYear) => ({
|
||||||
params: { year: curYear },
|
params: { year: curYear },
|
||||||
}));
|
}));
|
||||||
|
@ -38,7 +38,7 @@ export async function getStaticProps(context: Context): Promise<{
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
year: context.params.year,
|
year: context.params.year,
|
||||||
terms: await getTermsByYear(context.params.year),
|
terms: await getEventTermsByYear(context.params.year),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue