From 43424a73d25f2bd18a2735732aaf8007eb491322 Mon Sep 17 00:00:00 2001 From: wslyvh Date: Mon, 5 Aug 2024 11:51:49 +0200 Subject: [PATCH] remove polygon gas --- src/pages/gas.tsx | 3 --- src/pages/gas/[network].tsx | 14 ++++---------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/pages/gas.tsx b/src/pages/gas.tsx index 5b0d0cc0..a2358cad 100644 --- a/src/pages/gas.tsx +++ b/src/pages/gas.tsx @@ -91,9 +91,6 @@ export default function Index(props: Props) {
  • Optimism Gas Tracker
  • -
  • - Polygon Gas Tracker -
  • Base Gas Tracker
  • diff --git a/src/pages/gas/[network].tsx b/src/pages/gas/[network].tsx index 69898d36..10e060f4 100644 --- a/src/pages/gas/[network].tsx +++ b/src/pages/gas/[network].tsx @@ -100,9 +100,6 @@ export default function Index(props: Props) {
  • Optimism Gas Tracker
  • -
  • - Polygon Gas Tracker -
  • Base Gas Tracker
  • @@ -157,18 +154,15 @@ export default function Index(props: Props) { export const getStaticPaths: GetStaticPaths = async () => { return { paths: [ - { - params: { network: 'polygon' }, - }, - { - params: { network: 'optimism' }, - }, { params: { network: 'arbitrum' }, }, { params: { network: 'base' }, }, + { + params: { network: 'optimism' }, + }, ], fallback: false, } @@ -179,7 +173,7 @@ export const getStaticProps: GetStaticProps = async (context) => const service = new MarkdownContentService() const categories = await service.GetCategories() - if (!network || !['polygon', 'optimism', 'base', 'arbitrum'].includes(network)) { + if (!network || !['arbitrum', 'base', 'mainnet', 'optimism'].includes(network)) { return { props: null, notFound: true,