next-template
next-template copied to clipboard
🎨 style(main-nav.tsx): Using usePathname from next/navigation to show user current page.
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.