Sha256: b79ae233b7bd0da4297d43ce71a57866b581bacef9d613bc039827f1047c222d

Contents?: true

Size: 775 Bytes

Versions: 20

Compression:

Stored size: 775 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import {
  Bullseye,
  Title,
  EmptyState,
  EmptyStateIcon,
  Spinner,
} from '@patternfly/react-core';
import { translate as __ } from 'foremanReact/common/I18n';

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

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

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


export default Loading;

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-4.4.2.2 webpack/components/Loading.js
katello-4.4.2.1 webpack/components/Loading.js
katello-4.4.2 webpack/components/Loading.js
katello-4.5.1 webpack/components/Loading.js
katello-4.5.0 webpack/components/Loading.js
katello-4.5.0.rc2 webpack/components/Loading.js
katello-4.4.1 webpack/components/Loading.js
katello-4.5.0.rc1 webpack/components/Loading.js
katello-4.4.0.2 webpack/components/Loading.js
katello-4.4.0.1 webpack/components/Loading.js
katello-4.3.1 webpack/components/Loading.js
katello-4.4.0 webpack/components/Loading.js
katello-4.4.0.rc2 webpack/components/Loading.js
katello-4.4.0.rc1 webpack/components/Loading.js
katello-4.3.0 webpack/components/Loading.js
katello-4.3.0.rc4 webpack/components/Loading.js
katello-4.3.0.rc3 webpack/components/Loading.js
katello-4.3.0.rc2.1 webpack/components/Loading.js
katello-4.3.0.rc2 webpack/components/Loading.js
katello-4.3.0.rc1 webpack/components/Loading.js