From c70a61e13f4448ce459059704f5b0f9cc5570e97 Mon Sep 17 00:00:00 2001 From: Armanpreet Ghotra Date: Fri, 20 Dec 2024 13:40:13 +0100 Subject: [PATCH] fix: rename foodAccordion, nutritionAccordion, macroEconomicAccoridon --- src/components/Map/FcsMap/FcsAccordion.tsx | 10 +++++----- src/components/Map/IpcMap/IpcAccordion.tsx | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Map/FcsMap/FcsAccordion.tsx b/src/components/Map/FcsMap/FcsAccordion.tsx index 79227ae0..f19db817 100644 --- a/src/components/Map/FcsMap/FcsAccordion.tsx +++ b/src/components/Map/FcsMap/FcsAccordion.tsx @@ -7,11 +7,11 @@ import AccordionContainer from '../../Accordions/AccordionContainer'; export default function FcsAccordion({ countryData, loading, countryIso3Data, countryName }: FcsAccordionProps) { const isMobile = useMediaQuery('(max-width: 700px)'); - const foodSecurityAccordion = FcsFoodSecurityOperations.getFcsFoodSecurityAccordionItems( + const foodSecurityAccordionItems = FcsFoodSecurityOperations.getFcsFoodSecurityAccordionItems( countryData, countryIso3Data ); - const macroEconomicAccordion = FcsMacroEconomicOperations.getMacroEconomicAccordionItems( + const macroEconomicAccordionItems = FcsMacroEconomicOperations.getMacroEconomicAccordionItems( countryData, countryIso3Data ); @@ -23,7 +23,7 @@ export default function FcsAccordion({ countryData, loading, countryIso3Data, co title={countryName} accordionModalActive maxWidth={600} - items={[...foodSecurityAccordion, ...macroEconomicAccordion]} + items={[...foodSecurityAccordionItems, ...macroEconomicAccordionItems]} /> ) : ( @@ -35,12 +35,12 @@ export default function FcsAccordion({ countryData, loading, countryIso3Data, co multipleSelectionMode accordionModalActive maxWidth={600} - items={foodSecurityAccordion} + items={foodSecurityAccordionItems} expandAll />
- +
); diff --git a/src/components/Map/IpcMap/IpcAccordion.tsx b/src/components/Map/IpcMap/IpcAccordion.tsx index 2dc0da52..07b66843 100644 --- a/src/components/Map/IpcMap/IpcAccordion.tsx +++ b/src/components/Map/IpcMap/IpcAccordion.tsx @@ -7,12 +7,12 @@ export default function IpcAccordion({ countryData, countryName, countryIso3Data const deltaOneMonth = countryData?.fcsMinus1 ? countryData.fcs - countryData.fcsMinus1 : null; const deltaThreeMonth = countryData?.fcsMinus3 ? countryData.fcs - countryData.fcsMinus3 : null; - const ipcFoodSecurityAccordion = IpcFoodSecurityAccordionOperations.getFoodSecurityAccordionItems( + const foodSecurityAccordionItems = IpcFoodSecurityAccordionOperations.getFoodSecurityAccordionItems( countryData, deltaOneMonth, deltaThreeMonth ); - const ipcNutrititonAccordion = IpcFoodSecurityAccordionOperations.getNutritionAccordionItems(countryIso3Data); + const nutrititonAccordionItems = IpcFoodSecurityAccordionOperations.getNutritionAccordionItems(countryIso3Data); const isMobile = useMediaQuery('(max-width: 700px)'); return ( @@ -21,7 +21,7 @@ export default function IpcAccordion({ countryData, countryName, countryIso3Data title={countryName} accordionModalActive maxWidth={600} - items={[ipcFoodSecurityAccordion, ipcNutrititonAccordion]} + items={[foodSecurityAccordionItems, nutrititonAccordionItems]} multipleSelectionMode={!isMobile} expandAll={!isMobile} />