Skip to content

Commit

Permalink
Ensure internal links use pointer cursor
Browse files Browse the repository at this point in the history
We have to set this manually since we're implementing Next links with an
onClick handler to push the router to workaround a Next Link +
NavigationMenu.Link conflict.
  • Loading branch information
jonathansick committed Feb 10, 2025
1 parent c4d83c8 commit 694f628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/squareone/src/components/Header/AppsMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const Link = ({ href, internal, ...props }) => {
if (internal) {
return (
<PrimaryNavigation.Link active={isActive}>
<span onClick={() => router.push(href)}>{props.children}</span>
<span style={{ cursor: 'pointer' }} onClick={() => router.push(href)}>
{props.children}
</span>
</PrimaryNavigation.Link>
);
}
Expand Down

0 comments on commit 694f628

Please sign in to comment.