Sha256: eaebb512140dbd74284a2d98623654679deffd769c46aca487e23d468cd6a0ba
Contents?: true
Size: 795 Bytes
Versions: 32
Compression:
Stored size: 795 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { selectCurrentOrganization } from 'foremanReact/components/Layout/LayoutSelectors'; import reducer from './InventoryFilterReducer'; import * as actions from './InventoryFilterActions'; import InventoryFilter from './InventoryFilter'; import { selectFilterTerm } from './InventoryFilterSelectors'; export const reducers = { inventoryFilter: reducer }; const mapStateToProps = state => ({ filterTerm: selectFilterTerm(state), organization: selectCurrentOrganization(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export connected component export default connect(mapStateToProps, mapDispatchToProps)(InventoryFilter);
Version data entries
32 entries across 32 versions & 1 rubygems