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