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-3.0.26 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-4.0.26 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-4.0.25.1 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.25 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-4.0.25 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.24.1 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-4.0.24.1 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.24 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-4.0.24 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.23 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-4.0.23 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.22 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-4.0.22 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-4.0.21.1 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.21.1 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.21 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.20 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.19 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.18.1 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
foreman_rh_cloud-3.0.18 webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js