Last active
August 30, 2016 08:47
-
-
Save mmollaverdi/e7e92f16e71192fbd27dec7f45271589 to your computer and use it in GitHub Desktop.
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
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