Skip to content

Commit

Permalink
Fix not cc syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
slyg committed Oct 17, 2015
1 parent e2e06b4 commit 085f3ad
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions app/scripts/shop/components/Cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { PropTypes } from 'react';
import { values, map, pipe } from 'ramda';
import ReactCSSTransitionGroup from 'react-addons-transition-group';

let Cart = ({ cart, onremoveBookFromCart }) => {
let Cart = ({ cart, onRemoveBookFromCart }) => {

let cartItems = pipe(
values,
map( item =>
/* jshint ignore:start */
<li key={item.isbn}>
<CartItem item={item} onremoveBookFromCart={onremoveBookFromCart} />
<CartItem item={item} onRemoveBookFromCart={onRemoveBookFromCart} />
</li>
/* jshint ignore:end */
)
Expand All @@ -38,7 +38,7 @@ Cart.propTypes = {
totalPrice: PropTypes.number.isRequired,
books: PropTypes.object.isRequired
}).isRequired,
onremoveBookFromCart: PropTypes.func.isRequired
onRemoveBookFromCart: PropTypes.func.isRequired
};

export default Cart;
6 changes: 3 additions & 3 deletions app/scripts/shop/components/CartItem.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import { PropTypes } from 'react';

let CartItem = ({ item, onremoveBookFromCart }) =>
let CartItem = ({ item, onRemoveBookFromCart }) =>
/* jshint ignore:start */
<div className='grid-4-1'>
<div className='title' onClick={() => onremoveBookFromCart(item)}>{item.title}</div>
<div className='title' onClick={() => onRemoveBookFromCart(item)}>{item.title}</div>
<div className='tar price'>{item.amount} × {item.price}</div>
</div>
/* jshint ignore:end */
Expand All @@ -16,7 +16,7 @@ CartItem.propTypes = {
amount: PropTypes.number.isRequired,
price: PropTypes.number.isRequired
}).isRequired,
onremoveBookFromCart: PropTypes.func.isRequired
onRemoveBookFromCart: PropTypes.func.isRequired
};

export default CartItem;
2 changes: 1 addition & 1 deletion app/scripts/shop/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let app = React.createClass({
<div className='cart pbl'>
<Cart
cart={cart}
onremoveBookFromCart={ item => dispatch(removeBookFromCart(item)) }
onRemoveBookFromCart={ item => dispatch(removeBookFromCart(item)) }
/>
</div>
<div className='offer pbl'>
Expand Down
14 changes: 7 additions & 7 deletions public/shop.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -28848,15 +28848,15 @@

var Cart = function Cart(_ref) {
var cart = _ref.cart;
var onremoveBookFromCart = _ref.onremoveBookFromCart;
var onRemoveBookFromCart = _ref.onRemoveBookFromCart;

var cartItems = (0, _ramda.pipe)(_ramda.values, (0, _ramda.map)(function (item) {
return(
/* jshint ignore:start */
_react2['default'].createElement(
'li',
{ key: item.isbn },
_react2['default'].createElement(_CartItem2['default'], { item: item, onremoveBookFromCart: onremoveBookFromCart })
_react2['default'].createElement(_CartItem2['default'], { item: item, onRemoveBookFromCart: onRemoveBookFromCart })
)
);
}
Expand Down Expand Up @@ -28900,7 +28900,7 @@
totalPrice: _react.PropTypes.number.isRequired,
books: _react.PropTypes.object.isRequired
}).isRequired,
onremoveBookFromCart: _react.PropTypes.func.isRequired
onRemoveBookFromCart: _react.PropTypes.func.isRequired
};

exports['default'] = Cart;
Expand All @@ -28924,7 +28924,7 @@

var CartItem = function CartItem(_ref) {
var item = _ref.item;
var onremoveBookFromCart = _ref.onremoveBookFromCart;
var onRemoveBookFromCart = _ref.onRemoveBookFromCart;
return(
/* jshint ignore:start */
_react2['default'].createElement(
Expand All @@ -28933,7 +28933,7 @@
_react2['default'].createElement(
'div',
{ className: 'title', onClick: function () {
return onremoveBookFromCart(item);
return onRemoveBookFromCart(item);
} },
item.title
),
Expand All @@ -28957,7 +28957,7 @@
amount: _react.PropTypes.number.isRequired,
price: _react.PropTypes.number.isRequired
}).isRequired,
onremoveBookFromCart: _react.PropTypes.func.isRequired
onRemoveBookFromCart: _react.PropTypes.func.isRequired
};

exports['default'] = CartItem;
Expand Down Expand Up @@ -38683,7 +38683,7 @@
{ className: 'cart pbl' },
_react2['default'].createElement(_componentsCart2['default'], {
cart: cart,
onremoveBookFromCart: function (item) {
onRemoveBookFromCart: function (item) {
return dispatch((0, _actionCreators.removeBookFromCart)(item));
}
})
Expand Down
2 changes: 1 addition & 1 deletion public/shop.bundle.js.map

Large diffs are not rendered by default.

0 comments on commit 085f3ad

Please sign in to comment.