Sha256: 8ff7b130c26ad240f0cb7fe1151128301f1b1d2218260eaf851242e5e968a00f
Contents?: true
Size: 892 Bytes
Versions: 42
Compression:
Stored size: 892 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, selectHasToken, } from './Components/InsightsTable/InsightsTableSelectors'; // map state to props const mapStateToProps = state => ({ query: selectSearch(state), hasToken: selectHasToken(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