1
0
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:
Troy McConaghy 2018-11-29 16:29:07 +01:00 committed by GitHub
commit ec3b0b4648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 10 deletions

View File

@ -39,15 +39,20 @@ const Header = () => (
</Link>
<nav className={styles.headerMenu}>
{sections.map(({ node }) => (
<Link
key={node.title}
to={node.link}
className={styles.section}
>
{node.title}
</Link>
))}
{sections
.filter(
({ node }) =>
node.title !== 'API References'
)
.map(({ node }) => (
<Link
key={node.title}
to={node.link}
className={styles.section}
>
{node.title}
</Link>
))}
</nav>
</div>
</header>

View File

@ -38,7 +38,8 @@
&:last-child {
flex-basis: 100%;
text-align: center;
opacity: .75;
opacity: .5;
pointer-events: none;
}
}