Sha256: e5764e305952d598bbd47c47e68a17356504b7184e040738ebf34edae7099d5e
Contents?: true
Size: 1.11 KB
Versions: 82
Compression:
Stored size: 1.11 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 './reportUpload.scss'; const ReportUpload = ({ exitCode, logs, completed, downloadReports, error, toggleFullScreen, }) => ( <TabContainer className="report-upload"> <TabHeader exitCode={exitCode} 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, downloadReports: PropTypes.func, error: PropTypes.string, toggleFullScreen: PropTypes.func, }; ReportUpload.defaultProps = { exitCode: '', logs: null, completed: 0, downloadReports: noop, error: null, toggleFullScreen: noop, }; export default ReportUpload;
Version data entries
82 entries across 82 versions & 1 rubygems