jsx reformat and added href to A tags
This commit is contained in:
@@ -66,11 +66,19 @@ var ByCategory = React.createClass({
|
|||||||
className="col-lg-2 col-md-2 col-sm-4 col-xs-4 sidebar ">
|
className="col-lg-2 col-md-2 col-sm-4 col-xs-4 sidebar ">
|
||||||
<ul>
|
<ul>
|
||||||
{(this.state.category.get('sub_categories') || []).map(function(sc) {
|
{(this.state.category.get('sub_categories') || []).map(function(sc) {
|
||||||
return (<li> <a onClick={self.onSCClick.bind(self, sc)}>{sc.name}</a></li>)
|
return (
|
||||||
|
<li>
|
||||||
|
<a href="#" onClick={self.onSCClick.bind(self, sc)}>
|
||||||
|
{sc.name}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
)
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<FilterCriteriaSelector filterCriterias={this.state.category.get('filter_criterias')} onFCClick={this.onFCClick} />
|
<FilterCriteriaSelector
|
||||||
|
filterCriterias={this.state.category.get('filter_criterias')}
|
||||||
|
onFCClick={this.onFCClick} />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -78,18 +86,28 @@ var ByCategory = React.createClass({
|
|||||||
style={{height: "100%"}}
|
style={{height: "100%"}}
|
||||||
className="col-lg-10 col-md-10 col-sm-8 col-xs-8 ">
|
className="col-lg-10 col-md-10 col-sm-8 col-xs-8 ">
|
||||||
|
|
||||||
<LinkBanner locationName="category" locationId={Number(this.getParams().id)} />
|
<LinkBanner
|
||||||
|
locationName="category"
|
||||||
|
locationId={Number(this.getParams().id)} />
|
||||||
|
|
||||||
<h3> Kategorija - {this.state.category.get('name')}</h3>
|
<h3> Kategorija - {this.state.category.get('name')}</h3>
|
||||||
Number of items in this category: {this.state.items.length}
|
Number of items in this category: {this.state.items.length}
|
||||||
<div>
|
<div>
|
||||||
<AppliedFiltersList filters={this.appliedCategoryFiltersArray()} onRemove={self.removeAppliedFilter} />
|
<AppliedFiltersList
|
||||||
|
filters={this.appliedCategoryFiltersArray()}
|
||||||
|
onRemove={self.removeAppliedFilter} />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div> total count is : {this.state.items.totalCount}</div>
|
<div> total count is : {this.state.items.totalCount}</div>
|
||||||
<ItemList items={this.state.items} paginationEnabled={true} total={this.state.items.totalCount} limit={this.state.pagination.limit} onPageChange={this.changePage} currentOffset={this.state.pagination.offset} />
|
<ItemList
|
||||||
|
items={this.state.items}
|
||||||
|
paginationEnabled={true}
|
||||||
|
total={this.state.items.totalCount}
|
||||||
|
limit={this.state.pagination.limit}
|
||||||
|
onPageChange={this.changePage}
|
||||||
|
currentOffset={this.state.pagination.offset} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user