Unifying components when invalid params; Grid widescreen

This commit is contained in:
James Barnsley
2016-11-08 13:36:13 +13:00
parent 0a13eeaec1
commit f50fe2a4f2
20 changed files with 6148 additions and 5881 deletions

View File

@ -9,22 +9,21 @@ export default class CategoryGrid extends React.Component{
}
render(){
if( this.props.categories ){
var className = "grid category-grid"
if( this.props.className ) className += ' '+this.props.className
return (
<div className={className}>
{
this.props.categories.map(
(category, index) => {
return <GridItem item={category} key={index} link={'/discover/categories/'+category.id} />
}
)
}
</div>
);
}
return null;
if( !this.props.categories ) return null
var className = "grid category-grid"
if( this.props.className ) className += ' '+this.props.className
return (
<div className={className}>
{
this.props.categories.map(
(category, index) => {
return <GridItem item={category} key={index} link={'/discover/categories/'+category.id} />
}
)
}
</div>
);
}
}