Skip to content

Commit

Permalink
refactor: refactor parent menu item to be clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
Luqmaan Essop committed May 14, 2024
1 parent b3fee43 commit eb666ac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/ui/src/components/Organisms/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ export function Header() {
</Link>
) : (
<DesktopMenuDropDown title={item.title} key={item.title}>
<Link
key={item.target}
href={item.target}
className="m-1.5 block hover:text-blue-600 p-2 text-sm leading-[1.25rem] text-gray-900 font-bold"
>
{item.title}
</Link>
{item.children.map((child) =>
child.children.length === 0 ? (
<Link
Expand Down Expand Up @@ -126,6 +133,14 @@ export function Header() {
key={item.title}
nestLevel={1}
>
<Link
key={item.target}
href={item.target}
title={item.title}
className="block hover:text-blue-600 py-4 pr-8 pl-10 text-base text-gray-600"
>
{item.title}
</Link>
{item.children.map((child) =>
child.children.length === 0 ? (
<Link
Expand Down

0 comments on commit eb666ac

Please sign in to comment.