Sha256: 0d0da0f19a0ae5fb2ae2bd4b86cb3ad3661add8424bf1c27f5f32d60047beafc
Contents?: true
Size: 881 Bytes
Versions: 82
Compression:
Stored size: 881 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { setSetting } from '../../../../Components/InventorySettings/InventorySettingsActions'; import AdvancedSettings from './AdvancedSettings'; import { selectExcludePackages, selectHostObfuscationEnabled, selectIpsObfuscationEnabled, } from '../../../../Components/InventorySettings/InventorySettingsSelectors'; // map state to props const mapStateToProps = state => ({ hostObfuscationEnabled: selectHostObfuscationEnabled(state), ipsObfuscationEnabled: selectIpsObfuscationEnabled(state), excludePackagesEnabled: selectExcludePackages(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators({ setSetting }, dispatch); // export connected component export default connect(mapStateToProps, mapDispatchToProps)(AdvancedSettings);
Version data entries
82 entries across 82 versions & 1 rubygems