started with cart design
removing of items from cart now possible
This commit is contained in:
@@ -13,7 +13,7 @@ var CartActions = {
|
||||
addNItems: function(item, count) {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: CartConstants.ADD_N_ITEMS,
|
||||
item: item,
|
||||
item: item,
|
||||
count: count
|
||||
});
|
||||
},
|
||||
@@ -42,7 +42,14 @@ var CartActions = {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: CartConstants.CONFIRM_DELIVERY,
|
||||
});
|
||||
},
|
||||
|
||||
takeItemOut: function(id) {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: CartConstants.TAKE_ITEM_OUT,
|
||||
itemId: id
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = CartActions;
|
||||
module.exports = CartActions;
|
||||
|
||||
Reference in New Issue
Block a user