Sha256: 20c2387e4849667352d0309b1964e95c87df94b1350857893aa411c1f925569b

Contents?: true

Size: 725 Bytes

Versions: 83

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

83 entries across 83 versions & 1 rubygems

Version Path
foreman_rh_cloud-7.0.47 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-8.0.50 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-8.0.49 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-8.0.48 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-8.0.47 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-8.0.46 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-6.0.45 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.46 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.45 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-7.0.46 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.44 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-7.0.45 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-6.0.44 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.43 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-4.0.36 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-3.0.33 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-6.0.42.2 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-6.0.42.1 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-6.0.43 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.42 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js