diff --git a/src/containers/home/thematic-areas/index.tsx b/src/containers/home/thematic-areas/index.tsx index c6f3efa..9cd00b4 100644 --- a/src/containers/home/thematic-areas/index.tsx +++ b/src/containers/home/thematic-areas/index.tsx @@ -69,90 +69,38 @@ const THEMATIC_AREAS = [ ]; export default function ThematicAreas() { - const [openAccordionItem, setOpenAccordionItem] = useState(null); const [currentAccordionItem, setCurrentAccordionItem] = useState(null); return ( - <> - -
-
-

Thematic areas

-

- The more4nature activities are focused on three key thematic areas in environmental - protection: -

-
+ +
+
+

Thematic areas

+

+ The more4nature activities are focused on three key thematic areas in environmental + protection: +

- -
    - {THEMATIC_AREAS.map(({ name, description, imageURL, icon }) => ( -
  • -
    -
    - {icon} - {name} -
    -

    {description}

    -
  • - ))} -
-
- - setOpenAccordionItem(v || null)} - > - {THEMATIC_AREAS.map(({ name, description, imageURL, icon }) => { - const isFadedAccordionItem = openAccordionItem && name !== openAccordionItem; - const isOpenAccordionItem = openAccordionItem && name === openAccordionItem; - return ( -
- - -
- {icon} - {name} -
-
- {description} -
-
-
- ); - })} - - - +
+ +
    + {THEMATIC_AREAS.map(({ name, description, imageURL, icon }) => ( +
  • +
    +
    + {icon} + {name} +
    +

    {description}

    +
  • + ))} +
+
- + ); }