From bd30abca4c64c788105e173fe90f20936c8ffe03 Mon Sep 17 00:00:00 2001 From: Willian Viana Date: Tue, 31 Oct 2023 15:35:46 -0300 Subject: [PATCH] chore(fao): renamed array to be consistent with its value --- .../tree-cover-gain-outside-plantations/index.js | 4 ++-- .../widgets/forest-change/tree-loss-plantations/index.js | 4 ++-- utils/fao-countries.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/widgets/forest-change/tree-cover-gain-outside-plantations/index.js b/components/widgets/forest-change/tree-cover-gain-outside-plantations/index.js index 86393a1a7e..e15028a62a 100644 --- a/components/widgets/forest-change/tree-cover-gain-outside-plantations/index.js +++ b/components/widgets/forest-change/tree-cover-gain-outside-plantations/index.js @@ -12,7 +12,7 @@ import { TREE_PLANTATIONS, } from 'data/layers'; -import FAOCountries from 'utils/fao-countries'; +import { EuropeFAOCountries } from 'utils/fao-countries'; import getWidgetProps from './selectors'; @@ -79,7 +79,7 @@ export default { 'In {location} between 2000 and 2020, {gainPercent} of tree cover gain within {indicator} occurred outside of plantations.', }, blacklists: { - adm0: FAOCountries, + adm0: EuropeFAOCountries, }, settings: { threshold: 0, diff --git a/components/widgets/forest-change/tree-loss-plantations/index.js b/components/widgets/forest-change/tree-loss-plantations/index.js index d28c7cdb71..154b496f70 100644 --- a/components/widgets/forest-change/tree-loss-plantations/index.js +++ b/components/widgets/forest-change/tree-loss-plantations/index.js @@ -14,7 +14,7 @@ import { TREE_PLANTATIONS, } from 'data/layers'; -import FAOCountries from 'utils/fao-countries'; +import { EuropeFAOCountries } from 'utils/fao-countries'; import getWidgetProps from './selectors'; @@ -76,7 +76,7 @@ export default { checkStatus: true, }, blacklists: { - adm0: FAOCountries, + adm0: EuropeFAOCountries, }, settings: { threshold: 30, diff --git a/utils/fao-countries.js b/utils/fao-countries.js index 6459a69af8..07d1b38cfd 100644 --- a/utils/fao-countries.js +++ b/utils/fao-countries.js @@ -1,4 +1,4 @@ -const FAOCountries = [ +export const EuropeFAOCountries = [ 'ALB', 'AND', 'AUT', @@ -51,4 +51,4 @@ const FAOCountries = [ 'GBR', ]; -export default FAOCountries; +export default EuropeFAOCountries;