Skip to content

Instantly share code, notes, and snippets.

@mmollaverdi
Last active August 30, 2016 08:47
Show Gist options
  • Save mmollaverdi/e7e92f16e71192fbd27dec7f45271589 to your computer and use it in GitHub Desktop.
Save mmollaverdi/e7e92f16e71192fbd27dec7f45271589 to your computer and use it in GitHub Desktop.
module.exports = {
updateFilters: currentFiltersState => (filterName, filterValue) => // return new filers state containing the updated filter value
clearFilters: currentFiltersState => // return new state reset to initial value
switchTab: currentFiltersState => // return new state containing the location filter value from previous tab
routeFilters: currentFiltersState => mostRecentSearch => // return new state containing user's most recent location search
selectSearchHistory: currentFiltersState => selectedSearchFromHistory => // return selected search item from search history
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment