diff --git a/docs/pages/_app.js b/docs/pages/_app.js index 5a661475..a127688a 100644 --- a/docs/pages/_app.js +++ b/docs/pages/_app.js @@ -99,5 +99,3 @@ function List({items, ...rest}) { } return null } - -function noop() {} diff --git a/docs/src/SideNav.js b/docs/src/SideNav.js index 5231e433..bf23ff2d 100644 --- a/docs/src/SideNav.js +++ b/docs/src/SideNav.js @@ -2,7 +2,6 @@ import React from 'react' import {join} from 'path' import {withRouter} from 'next/router' import {Box, BorderBox, Flex, Relative} from '@primer/components' -import Link from './Link' import NodeLink from './NodeLink' import {rootPage} from './utils' @@ -95,7 +94,7 @@ const Router = withRouter(({router, children}) => { return React.Children.toArray(children).map(child => { if (child.props.path) { if (!matched && router.pathname.indexOf(child.props.path) === 0) { - return matched = child + return (matched = child) } } else { return child @@ -106,4 +105,3 @@ const Router = withRouter(({router, children}) => { function RouteMatch({children}) { return children } -