Merge branch 'feat/events-year' into feat/events-term
This commit is contained in:
commit
16616fe691
|
@ -29,11 +29,13 @@ interface Context {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
year: string;
|
||||||
|
terms: string[];
|
||||||
|
}
|
||||||
|
|
||||||
export async function getStaticProps(context: Context): Promise<{
|
export async function getStaticProps(context: Context): Promise<{
|
||||||
props: {
|
props: Props;
|
||||||
year: string;
|
|
||||||
terms: string[];
|
|
||||||
};
|
|
||||||
}> {
|
}> {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
|
@ -43,11 +45,6 @@ export async function getStaticProps(context: Context): Promise<{
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props {
|
|
||||||
year: string;
|
|
||||||
terms: string[];
|
|
||||||
}
|
|
||||||
|
|
||||||
const Year = (props: Props) => {
|
const Year = (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<div className={styles.main}>
|
<div className={styles.main}>
|
||||||
|
|
Loading…
Reference in New Issue