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> </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>

View File

@ -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;
} }
} }