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-7.0.3 webpack/components/TemplateSyncResult/components/SyncedTemplate/index.js
foreman_templates-7.0.2 webpack/components/TemplateSyncResult/components/SyncedTemplate/index.js