Sha256: 5791c2a14712c65f4ee85ac18beb8a1b5dd134662b07582e0fcb089f5fe6fcc3

Contents?: true

Size: 722 Bytes

Versions: 22

Compression:

Stored size: 722 Bytes

Contents

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

import {
  expandableContent,
  itemLeftContentIcon,
  additionalInfo,
} from './helpers';

const SyncedTemplate = ({ template, editPath }) => (
  <ListView.Item
    key={template.id}
    additionalInfo={additionalInfo(template, editPath)}
    className="listViewItem--listItemVariants"
    leftContent={itemLeftContentIcon(template)}
    hideCloseIcon
    stacked
  >
    {expandableContent(template)}
  </ListView.Item>
);

SyncedTemplate.propTypes = {
  template: PropTypes.object.isRequired,
  editPath: PropTypes.string,
};

SyncedTemplate.defaultProps = {
  editPath: '',
};

export default SyncedTemplate;

Version data entries

22 entries across 22 versions & 1 rubygems

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