Sha256: f4eef7ef5021c92a2098fe661343a1a2bf02460a5a22dd166522dedef935813d

Contents?: true

Size: 598 Bytes

Versions: 43

Compression:

Stored size: 598 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

43 entries across 43 versions & 1 rubygems

Version Path
katello-4.8.3 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.9.0 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.7.6 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.8.2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.9.0.rc2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.9.0.rc1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.8.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.7.5 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.8.0 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.8.0.rc2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.7.4 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.8.0.rc1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.7.3 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.7.2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.7.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.6.2.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.6.2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.7.0 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.6.1 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js
katello-4.7.0.rc2 webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js