Skip to content

Commit 2b4eb40

Browse files
authored
Merge pull request #254 from mayuran-deriv/mayuran/valuer-added-for-accordian-map
Mayuran/DAPI-779/Accordion with the same API token name will open together
2 parents 5acf06c + db0b85c commit 2b4eb40

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/CustomAccordion/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ const CustomAccordion: React.FC<TCustomAccordionProps> = ({ items }) => (
3030
collapsible
3131
defaultValue='item-1'
3232
>
33-
{items.map((item) => (
34-
<Accordion.Item className='accordion_root__item' key={item.header} value={item.header}>
33+
{items.map((item, index) => (
34+
<Accordion.Item
35+
className='accordion_root__item'
36+
key={item.header}
37+
value={item.header + index}
38+
>
3539
<AccordionTrigger>{item.header}</AccordionTrigger>
3640
<AccordionContent>{item.content}</AccordionContent>
3741
</Accordion.Item>

0 commit comments

Comments
 (0)