mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
14 lines
403 B
JavaScript
14 lines
403 B
JavaScript
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);
|