1
0
Fork 0

fix(fs.dev): No need to wrap link in a div

This commit is contained in:
Joost De Cock 2021-12-20 18:40:02 +01:00
parent 18566b5d37
commit ed922f4d99

View file

@ -96,19 +96,17 @@ const TopLevel = ({ icon, title, nav, current, slug, showChildren=false }) => (
text-primary text-primary
`}> `}>
{icon} {icon}
{/* Wrapping this in a div because tailwind doesn't pick up <Link href={`/${current._slug}/`}>
classes on the next js Link component */} <a className={`
<div className={`
grow grow
hover:cursor-pointer hover:text-underline hover:cursor-pointer hover:text-underline
hover:underline hover:underline
hover:decoration-secondary hover:decoration-secondary
hover:decoration-4 hover:decoration-4
`}> `}>
<Link href={`/${current._slug}/`}>
{title} {title}
</a>
</Link> </Link>
</div>
{showChildren && <Chevron />} {showChildren && <Chevron />}
</summary> </summary>
{showChildren && <SubLevel nodes={current} />} {showChildren && <SubLevel nodes={current} />}