added brands
This commit is contained in:
@@ -29,6 +29,7 @@ var ItemWithDetailsPage = React.createClass({
|
||||
<div className="col-md-7">
|
||||
<h3> {this.state.item.get('name')}</h3>
|
||||
<div>
|
||||
<div className='h4'> {this.state.item.get('brand').name}</div>
|
||||
<div className='h4'> {this.state.item.get('list_price')} KM</div>
|
||||
<div className='h5'>{this.state.item.get('pricePerUnit')}</div>
|
||||
<div> {this.state.item.get('description')}</div>
|
||||
|
||||
@@ -25,6 +25,7 @@ var SingleItem = React.createClass({
|
||||
<div className="single_item" onClick={itemClick}>
|
||||
<img src={firstImage.url} className="item_list_image" />
|
||||
<h1> { this.props.item.get('name') }</h1>
|
||||
<div>{ this.props.item.get('brand')? this.props.item.get('brand').name : '' } </div>
|
||||
<div> { this.props.item.get('list_price') } KM </div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user