mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
Config With Seacrh
This commit is contained in:
13
client/src/connectors/Search.connect.js
Normal file
13
client/src/connectors/Search.connect.js
Normal 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);
|
||||
Reference in New Issue
Block a user