you can now play with number of items to add
This commit is contained in:
10
front-ui/app/constants/cartConstants.js
Normal file
10
front-ui/app/constants/cartConstants.js
Normal file
@@ -0,0 +1,10 @@
|
||||
var keyMirror = require('react/lib/keyMirror');
|
||||
|
||||
// Define action constants
|
||||
module.exports = keyMirror({
|
||||
LOAD: null,
|
||||
ADD_ITEM: null,
|
||||
// because removeItem can be used to completely remove item
|
||||
// and not just decrease count by 1
|
||||
TAKE_ITEM_OUT: null
|
||||
});
|
||||
Reference in New Issue
Block a user