Sidebar double highlight fix (#24)

Co-authored-by: name-user1 <eray@deuslabs.fi>
This commit is contained in:
name-user1 2022-08-04 14:23:21 +03:00 committed by GitHub
parent 916beb6d5e
commit 5b9ce8568c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}