Skip to content
Snippets Groups Projects
Commit 17d8e744 authored by Julien MARGAIL's avatar Julien MARGAIL
Browse files

Merge branch 'feat/menu' into 'main'

afficher ou non l'icon dans menu

See merge request onegeo-suite/libs/gatsby-theme-onegeo!31
parents 63c5b243 fceb87bf
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,12 @@ const Menu = (props: Imenu) => {
{itemChild.name}
</span>
{itemChild?.children.length > 0 && (
<ChevronRightIcon className="h-5 w-5" />
<ChevronRightIcon
className={twMerge(
"h-5 w-5",
oItem.icon
)}
/>
)}
</Link>
{itemChild?.children?.length > 0 &&
......@@ -222,7 +227,9 @@ const Menu = (props: Imenu) => {
{item.name}
</span>
{item.children?.length > 0 && (
<ChevronDownIcon className="h-5 w-5" />
<ChevronDownIcon
className={twMerge("h-5 w-5", oClass.icon)}
/>
)}
</Link>
{item.children?.length > 0 && items(item)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment