Sha256: 11c51e711b04bd1695b44401f5b230f513083be9e3f54c7db412a68e9087a070
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { handleToggle as hostObfuscationToggle } from '../../../../Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions'; import { handleToggle as ipsObfuscationToggle } from '../../../../Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherActions'; import { handleToggle as excludePackagesToggle } from '../../../../Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherActions'; import AdvancedSettings from './AdvancedSettings'; import { selectExcludePackages, selectHostObfuscationEnabled, selectIpsObfuscationEnabled, } from '../../../../Components/AccountList/AccountListSelectors'; // 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( { hostObfuscationToggle, ipsObfuscationToggle, excludePackagesToggle }, dispatch ); // export connected component export default connect(mapStateToProps, mapDispatchToProps)(AdvancedSettings);
Version data entries
4 entries across 4 versions & 1 rubygems