From 50c2f08769398e9c7de03e891a49af14d03daf42 Mon Sep 17 00:00:00 2001 From: Jared He <66887902+jaredjhe@users.noreply.github.com> Date: Wed, 18 Aug 2021 10:42:10 -0500 Subject: [PATCH] Simplify types --- pages/events/[year]/index.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pages/events/[year]/index.tsx b/pages/events/[year]/index.tsx index 120b8a7a..43789422 100644 --- a/pages/events/[year]/index.tsx +++ b/pages/events/[year]/index.tsx @@ -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 (