Sha256: 3d72090d4631e34a18d2d11cd3b77edfa6bb784141a494395ca7d766151b7268

Contents?: true

Size: 809 Bytes

Versions: 15

Compression:

Stored size: 809 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { CubeIcon, CubesIcon } from '@patternfly/react-icons';
import './contentViewName.scss';

const ContentViewName = ({ composite, name, cvId }) => {
  const props = {
    key: cvId,
    title: composite ? 'composite' : 'single',
    style: { margin: '1px 5px' },
    className: 'svg-icon-centered',
  };
  return (
    <React.Fragment>
      <div className="svg-centered-container">
        {composite ? <CubesIcon {...props} /> : <CubeIcon {...props} />}
        {name}
      </div>
    </React.Fragment>
  );
};

ContentViewName.propTypes = {
  cvId: PropTypes.number.isRequired,
  name: PropTypes.string.isRequired,
  composite: PropTypes.bool,
};

ContentViewName.defaultProps = {
  composite: false,
};

export default ContentViewName;

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
katello-3.16.2 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.1.2 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.1.1 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.1 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc5.1 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc5 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc4.1 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc4 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc3.1 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc3 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc2.1 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc2 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc1.1 webpack/scenes/ContentViews/components/ContentViewName.js
katello-3.16.0.rc1 webpack/scenes/ContentViews/components/ContentViewName.js