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-6.0.42 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.41 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.39 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.38 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-4.0.35 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.37 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.36 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.35 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.34 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.33 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-3.0.32 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-4.0.32 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.32 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-4.0.31 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.31 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.30 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-4.0.30 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-3.0.29 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-4.0.29 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
foreman_rh_cloud-5.0.29 webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js