From a154b34100d4f19b2a318457512978dcab0d54cd Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 25 Nov 2021 15:32:22 +0000 Subject: [PATCH] fix: Make interface nicer --- pages/index.js | 5 ----- pages/research.js | 4 ---- 2 files changed, 9 deletions(-) diff --git a/pages/index.js b/pages/index.js index a2409a4..0a36556 100644 --- a/pages/index.js +++ b/pages/index.js @@ -13,14 +13,9 @@ import ComparisonView from '../lib/comparisonView.js' const elementsDocument = '../data/listOfMoralGoods.json' /* React components */ -// fs can only be used here. export async function getStaticProps() { - //getServerSideProps - // const { metaforecasts } = await getForecasts(); const directory = path.join(process.cwd(), "pages") let listOfElementsForView = JSON.parse(fs.readFileSync(path.join(directory, elementsDocument), 'utf8')); - //console.log(directory) - //console.log("metaforecasts", metaforecasts) return { props: { listOfElementsForView diff --git a/pages/research.js b/pages/research.js index 41d1188..545f18b 100644 --- a/pages/research.js +++ b/pages/research.js @@ -15,12 +15,8 @@ const elementsDocument = '../data/listOfResearchOutputs.json' /* React components */ // fs can only be used here. export async function getStaticProps() { - //getServerSideProps - // const { metaforecasts } = await getForecasts(); const directory = path.join(process.cwd(), "pages") let listOfElementsForView = JSON.parse(fs.readFileSync(path.join(directory, elementsDocument), 'utf8')); - //console.log(directory) - //console.log("metaforecasts", metaforecasts) return { props: { listOfElementsForView