diff --git a/src/components/Accordion/GlossaryAccordion.js b/src/components/Accordion/GlossaryAccordion.js index 06767eea..3e882910 100644 --- a/src/components/Accordion/GlossaryAccordion.js +++ b/src/components/Accordion/GlossaryAccordion.js @@ -151,7 +151,7 @@ const GlossaryAccordion = ({ glossaryData }) => { - {Object.keys(groupedData).map((letter, letterIndex) => ( + {Object.keys(groupedData).map((letter) => ( @@ -160,35 +160,21 @@ const GlossaryAccordion = ({ glossaryData }) => { {letter} - - - {letterIndex + 1}-{Object.keys(groupedData).length} - - - {groupedData[letter].map((term) => { - const isOpen = accordionState[term.slug]?.isOpen; - return ( - toggleAccordion(term.slug)}> - - - {term.title} - - - - {isOpen && ( - <> - - {term.description} - - - )} - - - ); - })} + {groupedData[letter].map((term) => ( +
+
+ + {term.title} + + + {term.description} + +
+
+ ))}
))}