Sha256: 13080e0907c46d52a0e46e92a256e0f80788283ad0762418d994a33c5d63e5d4
Contents?: true
Size: 848 Bytes
Versions: 33
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 './autoUploadSwitcher.scss'; const AutoUploadSwitcher = ({ autoUploadEnabled, handleToggle }) => ( <div className="auto_upload_switcher"> <span>Auto upload</span> <FieldLevelHelp content={__( 'Enable automatic upload of your host inventory to the Red Hat cloud' )} /> <Switch size="mini" value={autoUploadEnabled} onChange={() => handleToggle(autoUploadEnabled)} /> </div> ); AutoUploadSwitcher.propTypes = { autoUploadEnabled: PropTypes.bool, handleToggle: PropTypes.func.isRequired, }; AutoUploadSwitcher.defaultProps = { autoUploadEnabled: true, }; export default AutoUploadSwitcher;
Version data entries
33 entries across 33 versions & 1 rubygems