diff --git a/src/frontend/js/components/pages/list/ListContainer.js b/src/frontend/js/components/pages/list/ListContainer.js index 41fd2d1..3711bd1 100644 --- a/src/frontend/js/components/pages/list/ListContainer.js +++ b/src/frontend/js/components/pages/list/ListContainer.js @@ -12,12 +12,9 @@ const mapStateToProps = (state, ownProps) => { } } -const mapDispatchToProps = (dispatch) => { - return { - loadShopItems: (category) => { dispatch(actionCreators.loadShopItems(category)) } - } -} +const mapDispatchToProps = (dispatch) => ({ + loadShopItems: (category) => { dispatch(actionCreators.loadShopItems(category)) } +}) const ListContainer = connect(mapStateToProps, mapDispatchToProps)(List) - export default ListContainer