Sha256: 29d02446e38e492cc5f2c851d7745e912a4f61c1707eef4f721925062c5ee5d9
Contents?: true
Size: 876 Bytes
Versions: 19
Compression:
Stored size: 876 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, FieldLevelHelp } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import './HostObfuscationSwitcher.scss'; 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
19 entries across 19 versions & 1 rubygems