Sidebar double highlight fix (#24)
Co-authored-by: name-user1 <eray@deuslabs.fi>
This commit is contained in:
parent
916beb6d5e
commit
5b9ce8568c
@ -9,8 +9,8 @@ import { SidebarLayout } from './SidebarLayout'
|
||||
import { WalletLoader } from './WalletLoader'
|
||||
|
||||
const routes = [
|
||||
{ text: 'Create Collection', href: `/collections/` },
|
||||
{ text: 'Collections', href: `/collections` },
|
||||
{ text: 'Create Collection', href: `/collections/create/` },
|
||||
{ text: 'Collections', href: `/collections/` },
|
||||
{ text: 'Contract Dashboards', href: `/contracts/` },
|
||||
]
|
||||
|
||||
@ -35,7 +35,7 @@ export const Sidebar = () => {
|
||||
className={clsx(
|
||||
'py-2 px-4 -mx-4 uppercase', // styling
|
||||
'hover:bg-white/5 transition-colors', // hover styling
|
||||
{ 'font-bold text-plumbus': router.asPath.startsWith(href) }, // active route styling
|
||||
{ 'font-bold text-plumbus': router.asPath === href }, // active route styling
|
||||
// { 'text-gray-500 pointer-events-none': disabled }, // disabled route styling
|
||||
)}
|
||||
href={href}
|
||||
|
Loading…
Reference in New Issue
Block a user