Sha256: 2da86279875455cb44b402ee8e2a7475edc5a6e4ee88c77b4a5cd71903163feb
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
import PropTypes from 'prop-types'; import React from 'react'; import { Grid, GridItem } from '@patternfly/react-core'; import ReportsTab from 'foremanReact/components/HostDetails/Tabs/ReportsTab'; import DescriptionCard from './components/DescriptionCard'; import './styles.scss'; const Reports = ({ hostName, status, hostInfo: { puppet_proxy_name: proxyName, puppet_ca_proxy_name: caProxy, environment_name: env, }, }) => ( <div className="report-tab"> <Grid hasGutter> <GridItem span={4}> <DescriptionCard proxyName={proxyName} caProxy={caProxy} env={env} status={status} /> </GridItem> <GridItem span={12}> <ReportsTab hostName={hostName} origin="Puppet" /> </GridItem> </Grid> </div> ); Reports.propTypes = { hostName: PropTypes.string.isRequired, hostInfo: PropTypes.object, status: PropTypes.string, }; Reports.defaultProps = { hostInfo: {}, status: undefined, }; export default Reports;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_puppet-4.0.1 | webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js |
foreman_puppet-4.0.0 | webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js |