Sha256: e5764e305952d598bbd47c47e68a17356504b7184e040738ebf34edae7099d5e

Contents?: true

Size: 1.11 KB

Versions: 82

Compression:

Stored size: 1.11 KB

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { noop } from 'foremanReact/common/helpers';
import TabContainer from '../TabContainer';
import TabHeader from '../TabHeader';
import TabBody from '../TabBody';
import './reportUpload.scss';

const ReportUpload = ({
  exitCode,
  logs,
  completed,
  downloadReports,
  error,
  toggleFullScreen,
}) => (
  <TabContainer className="report-upload">
    <TabHeader
      exitCode={exitCode}
      onDownload={downloadReports}
      toggleFullScreen={toggleFullScreen}
    />
    <TabBody
      exitCode={exitCode}
      logs={logs}
      completed={completed}
      error={error}
    />
  </TabContainer>
);

ReportUpload.propTypes = {
  exitCode: PropTypes.string,
  logs: PropTypes.oneOfType([
    PropTypes.arrayOf(PropTypes.string),
    PropTypes.string,
  ]),
  completed: PropTypes.number,
  downloadReports: PropTypes.func,
  error: PropTypes.string,
  toggleFullScreen: PropTypes.func,
};

ReportUpload.defaultProps = {
  exitCode: '',
  logs: null,
  completed: 0,
  downloadReports: noop,
  error: null,
  toggleFullScreen: noop,
};

export default ReportUpload;

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
foreman_rh_cloud-10.0.3 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-9.0.51 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-8.0.51 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-7.0.48 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_rh_cloud-7.0.47 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js