Sha256: 1b8fde37ffe07e4e67d828f0560f7f549d815dfe1c4e68c9f6c9940361cac88b
Contents?: true
Size: 852 Bytes
Versions: 3
Compression:
Stored size: 852 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 HostObfuscationSwitcher = ({ hostObfuscationEnabled, handleToggle }) => ( <div className="host_obfuscation_switcher"> <SwitcherPF4 id="host-obfuscation-setting-switcher" label={__('Obfuscate host names')} tooltip={__('Obfuscate host names sent to the Red Hat cloud')} isChecked={hostObfuscationEnabled} onChange={() => handleToggle(hostObfuscationEnabled)} /> </div> ); HostObfuscationSwitcher.propTypes = { hostObfuscationEnabled: PropTypes.bool, handleToggle: PropTypes.func.isRequired, }; HostObfuscationSwitcher.defaultProps = { hostObfuscationEnabled: false, }; export default HostObfuscationSwitcher;
Version data entries
3 entries across 3 versions & 1 rubygems