removed console.log
This commit is contained in:
parent
a04ded5506
commit
ecffddf877
1 changed files with 1 additions and 2 deletions
|
@ -93,11 +93,10 @@ const StyledCollapseContainer = styled.div`
|
||||||
`
|
`
|
||||||
|
|
||||||
function parseToc(json) {
|
function parseToc(json) {
|
||||||
console.log(json)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ol>
|
<ol>
|
||||||
{json.map((elem) => (
|
{json.map((elem) => (
|
||||||
|
// elem: content, i, lvl
|
||||||
<li key={elem.slug}>
|
<li key={elem.slug}>
|
||||||
<HashLink smooth to={location.pathname + "#" + elem.slug}>
|
<HashLink smooth to={location.pathname + "#" + elem.slug}>
|
||||||
{elem.content}
|
{elem.content}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue