Sha256: 71c63befbb918622e96b89b465b7838f87a87a9ef3cb436f0a5f916649ad7381
Contents?: true
Size: 801 Bytes
Versions: 4
Compression:
Stored size: 801 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from '../../Components/AutoUploadSwitcher/AutoUploadSwitcherActions'; import InventoryAutoUpload from './InventoryAutoUpload'; import { selectAutoUploadEnabled } from '../../Components/AccountList/AccountListSelectors'; import { fetchAccountsStatus as fetchSettings } from '../../Components/AccountList/AccountListActions'; // map state to props const mapStateToProps = state => ({ autoUploadEnabled: selectAutoUploadEnabled(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators({ ...actions, fetchSettings }, dispatch); // export connected component export default connect( mapStateToProps, mapDispatchToProps )(InventoryAutoUpload);
Version data entries
4 entries across 4 versions & 1 rubygems