Sha256: 3d878aecaa72109a7153b3a9be8a864fe5ae19792b3db3194e9adf039ac940ea

Contents?: true

Size: 1.2 KB

Versions: 67

Compression:

Stored size: 1.2 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 './reportGenerate.scss';

const ReportGenerate = ({
  exitCode,
  logs,
  completed,
  error,
  restartProcess,
  toggleFullScreen,
  scheduled,
}) => (
  <TabContainer className="report-generate">
    <TabHeader
      exitCode={exitCode}
      onRestart={restartProcess}
      toggleFullScreen={toggleFullScreen}
    />
    <TabBody
      exitCode={exitCode}
      logs={logs}
      completed={completed}
      error={error}
      scheduled={scheduled}
    />
  </TabContainer>
);

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

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

export default ReportGenerate;

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
foreman_inventory_upload-1.0.0 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_inventory_upload-1.0.0.beta7 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_inventory_upload-1.0.0.beta6 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_inventory_upload-1.0.0.beta5 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_inventory_upload-1.0.0.beta4 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_inventory_upload-1.0.0.beta3 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_inventory_upload-1.0.0.beta2 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js