Config With Seacrh

This commit is contained in:
elforjani3
2020-04-11 15:00:22 +02:00
committed by Ahmed Bouhuolia
parent 2b2a9b7970
commit 7f43e09ee2
12 changed files with 285 additions and 150 deletions

View File

@@ -0,0 +1,13 @@
import { connect } from 'react-redux';
import t from 'store/types';
import { generalSearch } from 'store/search/search.actions';
export const mapStateToProps = (state, props) => ({
resultSearch: state.GeneralSearch,
});
export const mapDispatchToProps = (dispatch) => ({
generalSearch: (result) => dispatch(generalSearch(result)),
});
export default connect(mapStateToProps, mapDispatchToProps);