diff --git a/client/src/lib/page.js b/client/src/lib/page.js index 5b069c68..ac852717 100644 --- a/client/src/lib/page.js +++ b/client/src/lib/page.js @@ -132,12 +132,14 @@ class SecondaryNavBar extends Component { } } - let className = 'mt-secondary-nav nav nav-pills'; - if (this.props.className) { - className += ' ' + this.props.className; - } + if (renderedElems.length > 1) { + let className = 'mt-secondary-nav nav nav-pills'; + if (this.props.className) { + className += ' ' + this.props.className; + } - return ; + return ; + } } } @@ -214,8 +216,6 @@ class RouteContent extends Component { component = React.createElement(route.component, compProps, null); } - - return (