Skip to content

Instantly share code, notes, and snippets.

@ghoshabhi
Created June 11, 2017 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghoshabhi/eadec3dd7701afeaac72fd8afb71b94a to your computer and use it in GitHub Desktop.
Save ghoshabhi/eadec3dd7701afeaac72fd8afb71b94a to your computer and use it in GitHub Desktop.
import * as types from './constants';
export const setUserFilter = filterName => ({
type: types.SET_USER_FILTER,
payload: filterName,
});
export const removeUserFilter = filterName => ({
type: types.REMOVE_USER_FILTER,
payload: filterName,
});
export const setFindFilter = newFindFilters => ({
type: types.TOGGLE_FIND_FILTER,
payload: newFindFilters,
});
export const setNearFilter = newNearFilters => ({
type: types.TOGGLE_NEAR_FILTER,
payload: newNearFilters,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment