you can now play with number of items to add
This commit is contained in:
@@ -22,7 +22,7 @@ var ItemWithDetailsPage = React.createClass({
|
||||
onClickLeft={this.onClickLeft}
|
||||
onClickRight={this.onClickRight}
|
||||
onSelectImage={this.onSelectImage} />
|
||||
<AddToCart />
|
||||
<AddToCart itemId={this.state.item.id} />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ var Traits = React.createClass({
|
||||
for(var traitKey in traits ) {
|
||||
if(traits.hasOwnProperty(traitKey)) {
|
||||
var traitValue = this.props.traits[traitKey];
|
||||
traitsPresentation.push( <div className="single_trait">{traitKey}: {traitValue}</div> );
|
||||
traitsPresentation.push( <div key={traitKey} className="single_trait">{traitKey}: {traitValue}</div> );
|
||||
}
|
||||
}
|
||||
|
||||
console.log(traitsPresentation);
|
||||
|
||||
return (
|
||||
<div className="row-fluid">
|
||||
<div className="span12">
|
||||
|
||||
Reference in New Issue
Block a user