|
|
|
@ -29,11 +29,13 @@ interface Context { |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
interface Props { |
|
|
|
|
year: string; |
|
|
|
|
terms: string[]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export async function getStaticProps(context: Context): Promise<{ |
|
|
|
|
props: { |
|
|
|
|
year: string; |
|
|
|
|
terms: string[]; |
|
|
|
|
}; |
|
|
|
|
props: Props; |
|
|
|
|
}> { |
|
|
|
|
return { |
|
|
|
|
props: { |
|
|
|
@ -43,11 +45,6 @@ export async function getStaticProps(context: Context): Promise<{ |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
interface Props { |
|
|
|
|
year: string; |
|
|
|
|
terms: string[]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const Year = (props: Props) => { |
|
|
|
|
return ( |
|
|
|
|
<div className={styles.main}> |
|
|
|
|