Sha256: 2db5f5dca47762161812fb65e26a3b894026238e21b8de921a5fd57df3de0970

Contents?: true

Size: 614 Bytes

Versions: 22

Compression:

Stored size: 614 Bytes

Contents

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

import InfoItem from './InfoItem';
import { itemIteratorId } from './helpers';

const IconInfoItem = ({ template, attr, iconName, tooltipText }) => (
  <InfoItem itemId={itemIteratorId(template, attr)} tooltipText={tooltipText}>
    <Icon type="fa" name={iconName} />
  </InfoItem>
);

IconInfoItem.propTypes = {
  template: PropTypes.object.isRequired,
  attr: PropTypes.string.isRequired,
  iconName: PropTypes.string.isRequired,
  tooltipText: PropTypes.string.isRequired,
};

export default IconInfoItem;

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-10.0.1 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-10.0.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.5.1 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.5.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.3.3 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.3.2 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.3.1 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.4.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.3.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.2.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.1.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.0.2 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.0.1 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-9.0.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-7.0.7 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-8.0.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-7.0.6 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-7.0.5 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-7.0.4 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js