Sha256: 16dfe01413c6f548ea7f5009e9923ba75aeb148ebbacec6056960a3a43cf3f9e
Contents?: true
Size: 836 Bytes
Versions: 42
Compression:
Stored size: 836 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from './InsightsCloudSyncActions'; import { fetchInsights } from './Components/InsightsTable/InsightsTableActions'; import InsightsCloudSync from './InsightsCloudSync'; import insightsCloudSyncReducers from './InsightsCloudSyncReducers'; import { selectSearch } from './Components/InsightsTable/InsightsTableSelectors'; // map state to props const mapStateToProps = state => ({ query: selectSearch(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators({ ...actions, fetchInsights }, dispatch); // export reducers export const reducers = insightsCloudSyncReducers; // export connected component export default connect(mapStateToProps, mapDispatchToProps)(InsightsCloudSync);
Version data entries
42 entries across 42 versions & 1 rubygems