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