next-template icon indicating copy to clipboard operation
next-template copied to clipboard

🎨 style(main-nav.tsx): Using usePathname from next/navigation to show user current page.

Open kodbilenadam opened this issue 1 year ago • 0 comments

Today when I started using next-template (which is incredible and a great project!) I realized that while there is an option for disabled links in nav-items there is no option to show users the active page they are on.

If the menu item is disabled it won't show the current directory they are active but if the menu item is not disabled it's updating CSS to text-primary to show users the active page they are on.

kodbilenadam avatar May 04 '23 04:05 kodbilenadam