mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-01 15:55:34 +01:00
Merge pull request #78 from oceanprotocol/fix/api-refs
filter out API references link from main menu
This commit is contained in:
commit
ec3b0b4648
@ -39,15 +39,20 @@ const Header = () => (
|
|||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<nav className={styles.headerMenu}>
|
<nav className={styles.headerMenu}>
|
||||||
{sections.map(({ node }) => (
|
{sections
|
||||||
<Link
|
.filter(
|
||||||
key={node.title}
|
({ node }) =>
|
||||||
to={node.link}
|
node.title !== 'API References'
|
||||||
className={styles.section}
|
)
|
||||||
>
|
.map(({ node }) => (
|
||||||
{node.title}
|
<Link
|
||||||
</Link>
|
key={node.title}
|
||||||
))}
|
to={node.link}
|
||||||
|
className={styles.section}
|
||||||
|
>
|
||||||
|
{node.title}
|
||||||
|
</Link>
|
||||||
|
))}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
@ -38,7 +38,8 @@
|
|||||||
&:last-child {
|
&:last-child {
|
||||||
flex-basis: 100%;
|
flex-basis: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: .75;
|
opacity: .5;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user