Sha256: beb791c29dd5208940746bad5fcde534d715ea66289c24001d7d27b465dee6f4

Contents?: true

Size: 855 Bytes

Versions: 3

Compression:

Stored size: 855 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import SwitcherPF4 from '../../../common/Switcher/SwitcherPF4';

const IpsObfuscationSwitcher = ({ ipsObfuscationEnabled, handleToggle }) => (
  <div className="ips_obfuscation_switcher">
    <SwitcherPF4
      id="ips-obfuscation-settings-switcher"
      label={__('Obfuscate host ipv4 addresses')}
      tooltip={__('Obfuscate ipv4 addresses sent to the Red Hat cloud')}
      isChecked={ipsObfuscationEnabled}
      onChange={() => handleToggle(ipsObfuscationEnabled)}
    />
  </div>
);

IpsObfuscationSwitcher.propTypes = {
  ipsObfuscationEnabled: PropTypes.bool,
  handleToggle: PropTypes.func.isRequired,
};

IpsObfuscationSwitcher.defaultProps = {
  ipsObfuscationEnabled: false,
};

export default IpsObfuscationSwitcher;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.17 webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js
foreman_rh_cloud-3.0.16 webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js
foreman_rh_cloud-3.0.15 webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js