Sha256: bee36fba60f50892e562e80f3c16e419e23c17505bd09f54a4b30af008339e11
Contents?: true
Size: 722 Bytes
Versions: 114
Compression:
Stored size: 722 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import InsightsSettings from './InsightsSettings'; import { selectInsightsSyncEnabled } from './InsightsSettingsSelectors'; import * as actions from './InsightsSettingsActions'; import reducer from './InsightsSettingsReducer'; // map state to props const mapStateToProps = state => ({ insightsSyncEnabled: selectInsightsSyncEnabled(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export connected component export default connect(mapStateToProps, mapDispatchToProps)(InsightsSettings); // export reducers export const reducers = { settings: reducer };
Version data entries
114 entries across 114 versions & 1 rubygems