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

Version Path
foreman_rh_cloud-2.0.18.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-1.0.18 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-2.0.18 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-1.0.17 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-2.0.17 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-3.0.17 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-2.0.16 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-1.0.16 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-3.0.16 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-1.0.15 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-2.0.15 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-3.0.15 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-3.0.14 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-2.0.14 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-1.0.14 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-0.9.14 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-0.9.13.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-1.0.13.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-2.0.13.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
foreman_rh_cloud-0.9.13 webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js