Sha256: 0aaed83b38f1536327df672bd34b163efb9619f10e16ad9de192e68022be03ff
Contents?: true
Size: 824 Bytes
Versions: 3
Compression:
Stored size: 824 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 ExcludePackagesSwitcher = ({ excludePackages, handleToggle }) => ( <div className="exclude_packages_switcher"> <SwitcherPF4 id="exclude-packages-setting-switcher" label={__('Exclude Packages')} tooltip={__('Exclude packages from being uploaded to the Red Hat cloud')} isChecked={excludePackages} onChange={() => handleToggle(excludePackages)} /> </div> ); ExcludePackagesSwitcher.propTypes = { excludePackages: PropTypes.bool, handleToggle: PropTypes.func.isRequired, }; ExcludePackagesSwitcher.defaultProps = { excludePackages: false, }; export default ExcludePackagesSwitcher;
Version data entries
3 entries across 3 versions & 1 rubygems