Sha256: 8fbf7fa47298d5cdaae1d6a929b30c095bd5f0477e5dbeda40c20a6294456f23

Contents?: true

Size: 753 Bytes

Versions: 9

Compression:

Stored size: 753 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { withRenderHandler } from 'foremanReact/common/HOC';
import { translate as __ } from 'foremanReact/common/I18n';
import { EmptyStatePattern } from 'foremanReact/components/common/EmptyState';
import StatisticsChartsList from '../../../Components/StatisticsChartsList';

const Statistics = ({ statisticsMeta }) => {
  if (!statisticsMeta) {
    return (
      <EmptyStatePattern
        icon="info"
        header={__('No Charts To Load')}
        description=""
      />
    );
  }
  return <StatisticsChartsList data={statisticsMeta} />;
};

Statistics.propTypes = {
  statisticsMeta: PropTypes.array.isRequired,
};

export default withRenderHandler({
  Component: Statistics,
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_statistics-2.1.0 webpack/src/Router/StatisticsPage/Statistics/Statistics.js
foreman_statistics-2.0.1 webpack/src/Router/StatisticsPage/Statistics/Statistics.js
foreman_statistics-2.0.0 webpack/src/Router/StatisticsPage/Statistics/Statistics.js
foreman_statistics-1.2.0 webpack/src/Router/StatisticsPage/Statistics/Statistics.js
foreman_statistics-1.1.1 webpack/src/Router/StatisticsPage/Statistics/Statistics.js
foreman_statistics-1.1.0 webpack/src/Router/StatisticsPage/Statistics/Statistics.js
foreman_statistics-1.0.0 webpack/src/Router/StatisticsPage/Statistics/Statistics.js
foreman_statistics-0.1.3 webpack/src/Router/StatisticsPage/Statistics/Statistics.js
foreman_statistics-0.1.2 webpack/src/Router/StatisticsPage/Statistics/Statistics.js