Skip to content

Commit

Permalink
issue:AOSSIE-Org#230 solved projects link is opening in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
zakirali05 committed Sep 22, 2024
1 parent 02671ee commit aaabc67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ function MoonIcon(props) {
)
}

function MobileNavItem({ href, children }) {
function MobileNavItem({ href, children}) {
return (
<li>
<Popover.Button as={Link} href={href} className="block py-2">
<Popover.Button as={Link} href={href} className="block py-2">
{children}
</Popover.Button>
</li>
Expand Down Expand Up @@ -139,6 +139,7 @@ function NavItem({ href, children }) {
return (
<li>
<Link
target={href === "/projects" ? "_blank" : "_self"}
href={href}
className={clsx(
'relative block px-3 py-2 transition',
Expand Down

0 comments on commit aaabc67

Please sign in to comment.