created a very ugly report
This commit is contained in:
@@ -34,10 +34,22 @@ var CartPage = React.createClass({
|
||||
)
|
||||
});
|
||||
|
||||
console.log("bla :" , this.state.items.length);
|
||||
var deliveryDestination = (<span></span>);
|
||||
|
||||
if (this.state.destinationValid) {
|
||||
deliveryDestination = (
|
||||
<div>
|
||||
Na adresu {this.state.deliveryDestination.name},
|
||||
|
||||
</div>
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
var cartTotal = (
|
||||
<div className="row cart-total">
|
||||
|
||||
<CartTotal items={this.state.items} itemCounts={this.state.itemCounts} deliveryCosts={this.state.deliveryCosts}/>
|
||||
<div className="col-md-1 span1">
|
||||
<button className="btn btn-warning" onClick={this._onOrderClick}>Izgleda OK</button>
|
||||
|
||||
Reference in New Issue
Block a user