fix items connector.

This commit is contained in:
Ahmed Bouhuolia
2020-03-26 15:27:38 +02:00
parent 6fd1afaba7
commit c7db1394e7
6 changed files with 36 additions and 39 deletions

View File

@@ -3,7 +3,6 @@
import {connect} from 'react-redux';
import {
fetchItems,
fetchItem,
deleteItem,
submitItem,
} from 'store/items/items.actions';
@@ -29,7 +28,7 @@ export const mapStateToProps = (state, props) => {
};
export const mapDispatchToProps = (dispatch) => ({
fetchItems: (query) => dispatch(fetchItems({ query })),
requestFetchItems: (query) => dispatch(fetchItems({ query })),
requestDeleteItem: (id) => dispatch(deleteItem({ id })),
requestSubmitItem: (form) => dispatch(submitItem({ form })),
addBulkActionItem: (id) => dispatch({