Secondary nav is shown only if there are 2 or more items.
This commit is contained in:
parent
602364caae
commit
850e563362
1 changed files with 7 additions and 7 deletions
|
@ -132,6 +132,7 @@ class SecondaryNavBar extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (renderedElems.length > 1) {
|
||||||
let className = 'mt-secondary-nav nav nav-pills';
|
let className = 'mt-secondary-nav nav nav-pills';
|
||||||
if (this.props.className) {
|
if (this.props.className) {
|
||||||
className += ' ' + this.props.className;
|
className += ' ' + this.props.className;
|
||||||
|
@ -140,6 +141,7 @@ class SecondaryNavBar extends Component {
|
||||||
return <ul className={className}>{renderedElems}</ul>;
|
return <ul className={className}>{renderedElems}</ul>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@translate()
|
@translate()
|
||||||
@withErrorHandling
|
@withErrorHandling
|
||||||
|
@ -214,8 +216,6 @@ class RouteContent extends Component {
|
||||||
component = React.createElement(route.component, compProps, null);
|
component = React.createElement(route.component, compProps, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue