Sha256: 07929b832a1ba008e34b587364b721669d074425e5fc575447f11284a71613f9
Contents?: true
Size: 848 Bytes
Versions: 19
Compression:
Stored size: 848 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 './excludePackagesSwitcher.scss'; const ExcludePackagesSwitcher = ({ excludePackages, handleToggle }) => ( <div className="exclude_packages_switcher"> <span>Exclude Packages</span> <FieldLevelHelp content={__('Exclude packages from being uploaded to the Red Hat cloud')} /> <Switch size="mini" value={excludePackages} onChange={() => handleToggle(excludePackages)} /> </div> ); ExcludePackagesSwitcher.propTypes = { excludePackages: PropTypes.bool, handleToggle: PropTypes.func.isRequired, }; ExcludePackagesSwitcher.defaultProps = { excludePackages: false, }; export default ExcludePackagesSwitcher;
Version data entries
19 entries across 19 versions & 1 rubygems