Sha256: 4b7760fb1b0378f14d218a696a81886253ee15a903c3a6f89c13bc86e8aa4065

Contents?: true

Size: 616 Bytes

Versions: 46

Compression:

Stored size: 616 Bytes

Contents

import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import * as actions from './AutoUploadSwitcherActions';
import AutoUploadSwitcher from './AutoUploadSwitcher';
import { selectAutoUploadEnabled } from '../AccountList/AccountListSelectors';

// map state to props
const mapStateToProps = state => ({
  autoUploadEnabled: selectAutoUploadEnabled(state),
});

// map action dispatchers to props
const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);

// export connected component
export default connect(mapStateToProps, mapDispatchToProps)(AutoUploadSwitcher);

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.6 webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js
foreman_rh_cloud-1.0.6 webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js
foreman_rh_cloud-2.0.6 webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js
foreman_rh_cloud-0.9.5 webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js
foreman_rh_cloud-1.0.5 webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js
foreman_rh_cloud-2.0.5 webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js