Sha256: 2685c88db8e3f12c80cbca6e56ecfdb392488457063bfbe8916cfb4bc8f55434
Contents?: true
Size: 835 Bytes
Versions: 15
Compression:
Stored size: 835 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, FieldLevelHelp } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; const HostObfuscationSwitcher = ({ hostObfuscationEnabled, handleToggle }) => ( <div className="host_obfuscation_switcher"> <span>Obfuscate host names</span> <FieldLevelHelp content={__('Obfuscate host names sent to the Red Hat cloud')} /> <Switch size="mini" value={hostObfuscationEnabled} onChange={() => handleToggle(hostObfuscationEnabled)} /> </div> ); HostObfuscationSwitcher.propTypes = { hostObfuscationEnabled: PropTypes.bool, handleToggle: PropTypes.func.isRequired, }; HostObfuscationSwitcher.defaultProps = { hostObfuscationEnabled: false, }; export default HostObfuscationSwitcher;
Version data entries
15 entries across 15 versions & 1 rubygems