Sha256: 20c2387e4849667352d0309b1964e95c87df94b1350857893aa411c1f925569b

Contents?: true

Size: 725 Bytes

Versions: 81

Compression:

Stored size: 725 Bytes

Contents

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

import {
  getSettings,
  setSetting,
} from '../../Components/InventorySettings/InventorySettingsActions';
import InventoryAutoUpload from './InventoryAutoUpload';
import { selectAutoUploadEnabled } from '../../Components/InventorySettings/InventorySettingsSelectors';

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

// map action dispatchers to props
const mapDispatchToProps = dispatch =>
  bindActionCreators({ setSetting, getSettings }, dispatch);

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

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-9.0.51 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-8.0.51 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-7.0.48 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-7.0.47 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-8.0.50 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js