Sha256: b90712bfb6bedac178376c3111a4b06504f1bc8fe72a61516886a87f761b1e47

Contents?: true

Size: 625 Bytes

Versions: 49

Compression:

Stored size: 625 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import {
  Bullseye,
  Title,
  EmptyState,
  EmptyStateIcon,
  Spinner,
} from '@patternfly/react-core';

const Loading = ({ size, showText }) => (
  <Bullseye>
    <EmptyState>
      <EmptyStateIcon size={size} variant="container" component={Spinner} />
      {showText && (
        <Title size={size} headingLevel="h4">
          Loading
        </Title>)}
    </EmptyState>
  </Bullseye>
);

Loading.propTypes = {
  size: PropTypes.string,
  showText: PropTypes.bool,
};

Loading.defaultProps = {
  size: 'lg',
  showText: true,
};


export default Loading;

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
katello-4.2.2 webpack/components/Loading.js
katello-4.2.1 webpack/components/Loading.js
katello-4.2.0.1 webpack/components/Loading.js
katello-4.1.4 webpack/components/Loading.js
katello-4.0.3 webpack/components/Loading.js
katello-4.2.0.1.rc3 webpack/components/Loading.js
katello-3.18.5 webpack/components/Loading.js
katello-4.2.0.1.rc2 webpack/components/Loading.js
katello-4.2.0.rc2 webpack/components/Loading.js
katello-4.1.3 webpack/components/Loading.js
katello-4.2.0.rc1 webpack/components/Loading.js
katello-4.0.2.1 webpack/components/Loading.js
katello-4.1.2.1 webpack/components/Loading.js
katello-4.0.2 webpack/components/Loading.js
katello-4.1.2 webpack/components/Loading.js
katello-3.18.4 webpack/components/Loading.js
katello-4.1.1 webpack/components/Loading.js
katello-4.1.0 webpack/components/Loading.js
katello-4.0.1.2 webpack/components/Loading.js
katello-3.18.3.1 webpack/components/Loading.js