Sha256: b2289fe34509d25c1838d858d20429984bd6437e6ccd647ef662d3f01523c5bf

Contents?: true

Size: 593 Bytes

Versions: 28

Compression:

Stored size: 593 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { Label } from '@patternfly/react-core';

const ComponentEnvironments = ({ environments }) => environments.map((env, index) => (
  <Label
    key={env.id}
    style={{ margin: `4px 0 4px ${index > 0 ? '4px' : '0'}` }}
    color="purple"
    href={`/lifecycle_environments/${env.id}`}
    isTruncated
  >
    {env.name}
  </Label>
));


ComponentEnvironments.propTypes = {
  environments: PropTypes.instanceOf(Array),
};

ComponentEnvironments.defaultProps = {
  environments: [],
};

export default ComponentEnvironments;

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
katello-4.14.2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.15.0 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.15.0.rc2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.15.0.rc1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.14.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.14.0 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.14.0.rc3 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.14.0.rc2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.14.0.rc1.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.14.0.rc1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.13.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.13.0 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.12.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.13.0.rc1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.12.0 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.12.0.rc3 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.12.0.rc2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.12.0.rc1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.11.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.11.0 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js