mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-07-04 19:21:55 +00:00
Get rid of lib/vars
This commit is contained in:
@@ -9,7 +9,6 @@ import { useRouter } from 'next/router';
|
||||
import Layout from '../../components/layout';
|
||||
import { Icon } from '../../components/jambonz-ui';
|
||||
import { getData, getDocs, getDocsPaths } from '../../lib/data';
|
||||
import { docsObj } from '../../lib/vars';
|
||||
|
||||
function Sidebar({data}) {
|
||||
const router = useRouter();
|
||||
@@ -34,9 +33,9 @@ function Sidebar({data}) {
|
||||
return (
|
||||
<nav className="docs__navi">
|
||||
<div className="docs__link">
|
||||
<Link href={docsObj.link}>
|
||||
<Link href={data.root.link}>
|
||||
<a className="m">
|
||||
<strong>{docsObj.label}</strong>
|
||||
<strong>{data.root.label}</strong>
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user