From 49ab8a97b4764c37ede358c99d6e781a8729cce8 Mon Sep 17 00:00:00 2001 From: Armanpreet Ghotra Date: Thu, 19 Dec 2024 18:00:15 +0100 Subject: [PATCH] fix: rename methods of fcs and ipc --- src/components/Map/FcsMap/FcsAccordion.tsx | 2 +- src/components/Map/IpcMap/IpcAccordion.tsx | 2 +- src/operations/map/FcsMacroEconomicOperations.tsx | 2 +- src/operations/map/IpcFoodSecurityOperations.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Map/FcsMap/FcsAccordion.tsx b/src/components/Map/FcsMap/FcsAccordion.tsx index 5a4f374b..aa91dc54 100644 --- a/src/components/Map/FcsMap/FcsAccordion.tsx +++ b/src/components/Map/FcsMap/FcsAccordion.tsx @@ -11,7 +11,7 @@ export default function FcsAccordion({ countryData, loading, countryIso3Data, co countryData, countryIso3Data ); - const macroEconomicAccordion = FcsMacroEconomicOperations.getMacroEconomicAccordionOperations( + const macroEconomicAccordion = FcsMacroEconomicOperations.getMacroEconomicAccordionItems( countryData, countryIso3Data ); diff --git a/src/components/Map/IpcMap/IpcAccordion.tsx b/src/components/Map/IpcMap/IpcAccordion.tsx index d2c6b227..2dc0da52 100644 --- a/src/components/Map/IpcMap/IpcAccordion.tsx +++ b/src/components/Map/IpcMap/IpcAccordion.tsx @@ -12,7 +12,7 @@ export default function IpcAccordion({ countryData, countryName, countryIso3Data deltaOneMonth, deltaThreeMonth ); - const ipcNutrititonAccordion = IpcFoodSecurityAccordionOperations.getNutritionAccordion(countryIso3Data); + const ipcNutrititonAccordion = IpcFoodSecurityAccordionOperations.getNutritionAccordionItems(countryIso3Data); const isMobile = useMediaQuery('(max-width: 700px)'); return ( diff --git a/src/operations/map/FcsMacroEconomicOperations.tsx b/src/operations/map/FcsMacroEconomicOperations.tsx index ac92b7a5..bd4bc438 100644 --- a/src/operations/map/FcsMacroEconomicOperations.tsx +++ b/src/operations/map/FcsMacroEconomicOperations.tsx @@ -9,7 +9,7 @@ import { ReactComponent as Import } from '../../../public/Images/Import.svg'; import { FcsAccordionOperations } from './FcsAccordionOperations'; export class FcsMacroEconomicOperations { - static getMacroEconomicAccordionOperations( + static getMacroEconomicAccordionItems( countryData: CountryData | undefined, countryIso3Data: CountryIso3Data | undefined ) { diff --git a/src/operations/map/IpcFoodSecurityOperations.tsx b/src/operations/map/IpcFoodSecurityOperations.tsx index 2a6d072f..066b5aa0 100644 --- a/src/operations/map/IpcFoodSecurityOperations.tsx +++ b/src/operations/map/IpcFoodSecurityOperations.tsx @@ -76,7 +76,7 @@ export class IpcFoodSecurityAccordionOperations { }; } - static getNutritionAccordion(countryIso3Data: CountryIso3Data | undefined) { + static getNutritionAccordionItems(countryIso3Data: CountryIso3Data | undefined) { const nutritionData = FcsAccordionOperations.getNutritionData(countryIso3Data); if (!nutritionData || (nutritionData.Acute == null && nutritionData.Chronic == null)) {