diff --git a/front-ui/app/components/cart/cartIcon.js b/front-ui/app/components/cart/cartIcon.js index e61fc5f..77a8be8 100644 --- a/front-ui/app/components/cart/cartIcon.js +++ b/front-ui/app/components/cart/cartIcon.js @@ -3,24 +3,32 @@ var CartStore = require('../../stores/cartStore.js'); var CartActions = require('../../actions/cartActions.js'); var NavigationActions = require('../../actions/navigationActions.js'); var LoginStatus = require('../shared/loginStatus'); - - + + var cartStyle = { fontSize: '50px' }; +var normalizeCount = function(count) { + if (count >= 0 && count < 10) { + return "\u00a0" + count; + } else { + return count; + } +} + var CartIcon = React.createClass({ render: function() { var textNotificationStyle = (this.state.count > 0) ? { display: 'inline-block'} : { display: 'none'} ; - return ( + return (
diff --git a/front-ui/app/components/items/singleItem.js b/front-ui/app/components/items/singleItem.js index d7b3811..609da0d 100644 --- a/front-ui/app/components/items/singleItem.js +++ b/front-ui/app/components/items/singleItem.js @@ -34,10 +34,8 @@ var SingleItem = React.createClass({{ this.props.item.get('brand') ? this.props.item.get('brand').name : '' }{ this.props.item.get('name') }
-{ this.props.item.get('brand') ? this.props.item.get('brand').name : '' }{ this.props.item.get('name') }
+