Skip to content

Commit

Permalink
fix: use framework links in header menu
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Apr 7, 2023
1 parent e6672cf commit fa711cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/Organisms/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ export default function Header(props: { mainNavigation: NavigationFragment }) {
>
<Popover.Panel className="absolute -left-8 top-full z-10 mt-3 w-56 rounded-xl bg-white p-2 shadow-lg ring-1 ring-gray-900/5">
{item.children.map((child) => (
<a
<Link
key={child.target}
href={child.target}
className="block rounded-lg py-2 px-3 text-sm font-semibold leading-6 text-gray-900 hover:bg-gray-50"
>
{child.title}
</a>
</Link>
))}
</Popover.Panel>
</Transition>
Expand Down

0 comments on commit fa711cf

Please sign in to comment.