Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: docs nav refresh when using side nav #9486 (#9513)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmamunur authored Nov 17, 2023
1 parent 97e198e commit 81dde4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/navbar/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ export default function SideNav({ navigation }) {
{item.children.map((subItem) => (
<li key={subItem.name}>
{/* 44px */}
<Disclosure.Button
as="a"
<Link
href={subItem.href}
className={classNames(
subItem.href.toLowerCase() == pathname &&
Expand All @@ -72,7 +71,7 @@ export default function SideNav({ navigation }) {
)}
>
{subItem.name}
</Disclosure.Button>
</Link>
</li>
))}
</Disclosure.Panel>
Expand Down

0 comments on commit 81dde4e

Please sign in to comment.