Skip to content

Commit

Permalink
chore: update Accordion implementation [tools]
Browse files Browse the repository at this point in the history
  • Loading branch information
timoheddes committed Aug 31, 2023
1 parent 325edf9 commit bb16d65
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ export const Menu: FC = () => {
title={activeMenu.title}
/>
</div>
<Accordion
sections={
activeMenu.items?.map((item) => ({
title: '', // @todo: fix Type error: Property 'title' does not exist on type 'ISidebarSubMenuItem'.
children: <Tree isOpen={true} items={item.items} />,
})) ?? []
}
/>
<Accordion.Root>
{activeMenu.items?.map((item, index) => (
<Accordion.Section title="" key={index}>
<Tree isOpen={true} items={item.items} />
</Accordion.Section>
))}
</Accordion.Root>
</div>
);
};

0 comments on commit bb16d65

Please sign in to comment.