Created
January 29, 2018 09:09
-
-
Save abruzzi/596a8e4e2f0293a793e69a0feb1b33d6 to your computer and use it in GitHub Desktop.
This file contains 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
export const getCollections = () => { | |
return (dispatch, getState) => { | |
const state = getState() | |
const params = { | |
priceLow: state.sidebar.lowPrice, | |
priceHigh: state.sidebar.highPrice | |
} | |
dispatch({ | |
type: COLLECTION, | |
payload: axios.get(`http://localhost:3000/api/collections`, {params}) | |
}) | |
} | |
} |
Author
abruzzi
commented
Jan 31, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment