Allow hiding listing tabs
[PREMIUM-138]
This commit is contained in:
committed by
Jack Kitterhing
parent
0ae466f5fa
commit
2e1ea9bd28
@@ -29,6 +29,9 @@ class ListingTabs extends React.Component {
|
||||
|
||||
render() {
|
||||
const tabs = this.state.tabs.map((tab) => {
|
||||
if (tab.display === false) {
|
||||
return null;
|
||||
}
|
||||
const tabClasses = classNames(
|
||||
'nav-tab',
|
||||
{ 'nav-tab-active': (this.props.tab === tab.name) }
|
||||
|
Reference in New Issue
Block a user