From 2223e1c73eadbf3106698cdce82f22773db4b35d Mon Sep 17 00:00:00 2001 From: Willian Viana Date: Fri, 15 Nov 2024 15:10:52 -0300 Subject: [PATCH] chore(comments): remove old comments --- pages/dashboards/[[...location]].js | 1 - pages/embed/sentence/[[...location]].js | 16 ---------------- services/geostore.js | 5 ----- 3 files changed, 22 deletions(-) diff --git a/pages/dashboards/[[...location]].js b/pages/dashboards/[[...location]].js index 97d856ac56..4a4f3013dd 100644 --- a/pages/dashboards/[[...location]].js +++ b/pages/dashboards/[[...location]].js @@ -13,7 +13,6 @@ import { parseStringWithVars } from 'utils/strings'; import { getLocationData } from 'services/location'; import { getPublishedNotifications } from 'services/notifications'; import { - // getCountriesProvider, getRegionsProvider, getSubRegionsProvider, getCategorisedCountries, diff --git a/pages/embed/sentence/[[...location]].js b/pages/embed/sentence/[[...location]].js index 5536fc88f0..72c21d4165 100644 --- a/pages/embed/sentence/[[...location]].js +++ b/pages/embed/sentence/[[...location]].js @@ -6,7 +6,6 @@ import { parseGadm36Id } from 'utils/gadm'; import { getLocationData } from 'services/location'; import { - // getCountriesProvider, getRegionsProvider, getSubRegionsProvider, getCategorisedCountries, @@ -151,21 +150,6 @@ export const getServerSideProps = async ({ params }) => { }; } }; -// -// export const getStaticPaths = async () => { -// const countryData = await getCountriesProvider(); -// const { rows: countries } = countryData?.data || {}; -// const countryPaths = countries.map((c) => ({ -// params: { -// location: ['country', c.iso], -// }, -// })); -// -// return { -// paths: ['/embed/sentence/', ...countryPaths] || [], -// fallback: true, -// }; -// }; const getSentenceClientSide = async ( locationNames = null, diff --git a/services/geostore.js b/services/geostore.js index 723c89e22c..7c72931ada 100644 --- a/services/geostore.js +++ b/services/geostore.js @@ -2,11 +2,6 @@ import { apiRequest } from 'utils/request'; import { getDatasetQuery, getDatasetGeostore } from 'services/datasets'; -<<<<<<< HEAD -======= -// const LARGE_ISOS = ['USA', 'RUS', 'CAN', 'CHN', 'BRA', 'IDN', 'AUS']; - ->>>>>>> f376d35565 (feat(metadata): add new geostore query for admin level 0) const getWDPAGeostore = ({ id, token }) => getDatasetQuery({ dataset: 'wdpa_protected_areas',