Created
June 14, 2016 14:41
-
-
Save Jessica7/dad1a8d156a8f9f3d6b710bc90a81ca0 to your computer and use it in GitHub Desktop.
action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as ACTIONS from '../constants/products'; | |
| export function inject(items) { | |
| return { | |
| type: ACTIONS.INJECT_PRODUCTS, | |
| items | |
| }; | |
| } | |
| export function filterPrice(key) { | |
| return { | |
| type: ACTIONS.FILTER_PRICE, | |
| key | |
| }; | |
| } | |
| export function filterCategory(key) { | |
| return { | |
| type: ACTIONS.FILTER_CATEGORY, | |
| key | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment