Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vardanbansal-harness committed Feb 28, 2025
1 parent b163461 commit 42652a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/ui/src/context/RouterContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ const NavLinkDefault = ({ to, children, className, style, ...props }: NavLinkPro
const isActive = new URL(href, window.location.origin).pathname === window.location.pathname

const finalClassName =
typeof className === 'function'
? className({ isActive, isPending: false, isTransitioning: false })
: cn(className, isActive ? 'font-bold text-blue-600' : 'text-blue-500')
typeof className === 'function' ? className({ isActive, isPending: false, isTransitioning: false }) : cn(className)

const finalStyle = typeof style === 'function' ? style({ isActive, isPending: false, isTransitioning: false }) : style

Expand Down

0 comments on commit 42652a8

Please sign in to comment.