Sha256: 3f60f0f96e6423959437e54eda7083e38cfe7798d8ac6ba8b8a58f5b936ff54d
Contents?: true
Size: 643 Bytes
Versions: 40
Compression:
Stored size: 643 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Icon, OverlayTrigger, Tooltip, noop } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; const ClearButton = ({ onClear }) => ( <OverlayTrigger overlay={ <Tooltip id="inventory_filter_clear_overlay">{__('Clear')}</Tooltip> } placement="top" trigger={['hover', 'focus']} > <Icon name="close" className="inventory-clear-button" onClick={onClear} /> </OverlayTrigger> ); ClearButton.propTypes = { onClear: PropTypes.func, }; ClearButton.defaultProps = { onClear: noop, }; export default ClearButton;
Version data entries
40 entries across 40 versions & 1 rubygems