1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Improvement: Show whole sidebar nested list

This commit is contained in:
Akshay 2021-05-18 17:45:14 +02:00
parent 14313583ea
commit 01df71c654

View File

@ -11,7 +11,6 @@ export default function MarkdownList({ pageContext }) {
const modules = {}
const nested = {}
const nested2 = []
const [selectedNodeId, setSelectedNodeId] = useState(0)
const changeNodeid = (id) => {
@ -41,7 +40,6 @@ export default function MarkdownList({ pageContext }) {
label: value.frontmatter.title
}
}
// obj[keyPath[lastKeyIndex]].push({ type: 'module', value: value.id })
}
pageContext.markdownList.map(({ node }) => {
@ -123,9 +121,7 @@ export default function MarkdownList({ pageContext }) {
</div>
<main className={styles.wrapper}>
<aside className={styles.sidebar}>
<nav>
<div className={sidebarStyles.sidebar}>{n2}</div>
</nav>
</aside>
<article className={styles.main}>
<MarkdownTemplate data={elem} />