fix(fs.dev): No need to wrap link in a div
This commit is contained in:
parent
18566b5d37
commit
ed922f4d99
1 changed files with 10 additions and 12 deletions
|
@ -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}
|
||||||
</Link>
|
</a>
|
||||||
</div>
|
</Link>
|
||||||
{showChildren && <Chevron />}
|
{showChildren && <Chevron />}
|
||||||
</summary>
|
</summary>
|
||||||
{showChildren && <SubLevel nodes={current} />}
|
{showChildren && <SubLevel nodes={current} />}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue