Files
old-new-wiaas/frontend/src/containers/cart/components/CartIcon.jsx

17 lines
370 B
React
Raw Normal View History

2018-06-14 16:49:28 +02:00
import React, {Component} from 'react';
class CartIcon extends Component {
render() {
let {cartCount} = this.props;
cartCount = parseInt(cartCount, 10) || 0;
2018-06-14 16:49:28 +02:00
return (
<span id="cart-count" className="items-cart-count">
2018-11-05 13:37:47 +01:00
{cartCount >= 1 && ' * ' }
2018-06-14 16:49:28 +02:00
</span>
);
}
}
export default CartIcon;