Sha256: d75b2c31dbedd7ea8cceb08a734ce9c94dd6929db7235913cad659a04de909d3

Contents?: true

Size: 1.21 KB

Versions: 16

Compression:

Stored size: 1.21 KB

Contents

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

const ReportUpload = ({
  exitCode,
  logs,
  completed,
  downloadReports,
  restartProcess,
  error,
  toggleFullScreen,
}) => (
  <TabContainer className="report-upload">
    <TabHeader
      exitCode={exitCode}
      onRestart={restartProcess}
      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,
  restartProcess: PropTypes.func,
  downloadReports: PropTypes.func,
  error: PropTypes.string,
  toggleFullScreen: PropTypes.func,
};

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

export default ReportUpload;

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
foreman_inventory_upload-2.0.4.pre.2 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-2.0.4.pre.1 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-2.0.3 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.3 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-0.9.2 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.2 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-0.9.1 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.1 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-0.9.0 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.0 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.0.beta7 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.0.beta6 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.0.beta5 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.0.beta4 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.0.beta3 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js
foreman_inventory_upload-1.0.0.beta2 webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js