price on item page is now with two decimals
This commit is contained in:
@@ -7,6 +7,7 @@ var React = require('react'),
|
||||
AddToCart = require('../cart/addToCart');
|
||||
|
||||
var Router = require('react-router');
|
||||
var Globals = require('../../globals');
|
||||
|
||||
|
||||
var ItemWithDetailsPage = React.createClass({
|
||||
@@ -24,7 +25,7 @@ var ItemWithDetailsPage = React.createClass({
|
||||
<div className='item_brand_name'> {this.state.item.get('brand').name}</div>
|
||||
<div className='item_name'> {this.state.item.get('name')}</div>
|
||||
<div>
|
||||
<div className='item_price'> {this.state.item.get('list_price')} KM</div>
|
||||
<div className='item_price'> {Globals.FormatCurrency(this.state.item.get('list_price'))}</div>
|
||||
|
||||
<div>Količina</div>
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@ var SingleItem = React.createClass({
|
||||
<div className="col-lg-3 col-md-3 col-sm-4 col-xs-6" onClick={itemClick}>
|
||||
<div className="productbox">
|
||||
<img className="img-responsive" src={firstImage.resized_url} alt="product image" />
|
||||
<div style={{height: "110px"}}>
|
||||
<p> <span className="text-uppercase">{ this.props.item.get('brand') ? this.props.item.get('brand').name : '' }</span>
|
||||
<div style={{height: "110px"}} className="item_name_and_price">
|
||||
<p><span className="text-uppercase">{ this.props.item.get('brand') ? this.props.item.get('brand').name : '' }</span>
|
||||
<br /><span className="text-capitalize">{ this.props.item.get('name') }</span></p>
|
||||
<h4>{ Globals.FormatCurrency(this.props.item.get('list_price')) }</h4>
|
||||
</div>
|
||||
@@ -42,7 +42,7 @@ var SingleItem = React.createClass({
|
||||
</div>
|
||||
);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
itemClick: function(e) {
|
||||
NavigationActions.goToItemDetails(this.props.item);
|
||||
|
||||
Reference in New Issue
Block a user