Skip to content

Commit

Permalink
Fix issue with uncrawlable link
Browse files Browse the repository at this point in the history
  • Loading branch information
DinerIsmail committed Oct 6, 2024
1 parent 3c85167 commit 5c6729d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/nav/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default function MainNav() {
{
label: 'Webs',
href: '/#web-cards',
rel: 'nofollow',
children: webs
?.filter(
(web) =>
Expand Down Expand Up @@ -160,7 +161,7 @@ const DesktopNav = ({ currentPathname, navItems }) => {
<Box key={navItem.label}>
<Popover trigger={'hover'} placement={'bottom-start'}>
<PopoverTrigger>
<NextLink href={navItem.href} passHref>
<NextLink href={navItem.href} passHref rel={navItem.rel}>
<button
className={`${styles.navLink} ${
currentPathname === navItem.href ? styles.active : ''
Expand Down Expand Up @@ -280,9 +281,9 @@ const MobileNavItem = ({ label, children, href }: NavItem) => {
mt={2}
pl={4}
borderLeft={1}
borderStyle={'solid'}
borderStyle="solid"
borderColor={useColorModeValue('gray.200', 'gray.700')}
align={'start'}
align="start"
>
{children &&
children.map((child) => (
Expand Down

0 comments on commit 5c6729d

Please sign in to comment.