Sha256: a7e2fd50dddd2b62d368b2963feb816aa54c965bfed553bb36d7c31015e3f661

Contents?: true

Size: 560 Bytes

Versions: 12

Compression:

Stored size: 560 Bytes

Contents

import React from 'react';
import { Tooltip, Icon, OverlayTrigger } from 'patternfly-react';
import PropTypes from 'prop-types';

const ButtonTooltip = props => {
  const tooltip = (
    <Tooltip id={`${props.tooltipId}-tooltip-id`}>
      <span>Use default value from settings</span>
    </Tooltip>
  );

  return (
    <OverlayTrigger overlay={tooltip} trigger={['hover', 'focus']}>
      <Icon type="fa" name="refresh" />
    </OverlayTrigger>
  );
};

ButtonTooltip.propTypes = {
  tooltipId: PropTypes.string.isRequired,
};

export default ButtonTooltip;

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_templates-9.2.0 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-9.1.0 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-9.0.2 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-9.0.1 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-9.0.0 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-7.0.7 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-8.0.0 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-7.0.6 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-7.0.5 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-7.0.4 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-7.0.3 webpack/components/NewTemplateSync/components/ButtonTooltip.js
foreman_templates-7.0.2 webpack/components/NewTemplateSync/components/ButtonTooltip.js