Sha256: 18c0f6a3b76ac6042b9667bfe35f6b12af6d07cdb83f35742fc9e5657f2080dd

Contents?: true

Size: 1.21 KB

Versions: 80

Compression:

Stored size: 1.21 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 './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

80 entries across 80 versions & 1 rubygems

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