Skip to content

Instantly share code, notes, and snippets.

@Jessica7
Created June 14, 2016 14:41
Show Gist options
  • Select an option

  • Save Jessica7/dad1a8d156a8f9f3d6b710bc90a81ca0 to your computer and use it in GitHub Desktop.

Select an option

Save Jessica7/dad1a8d156a8f9f3d6b710bc90a81ca0 to your computer and use it in GitHub Desktop.
action
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