Sha256: 84504cde06c69a2e72911047cf9a8bc88f7c66aace881a98274a4a02dffc310a

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 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 ConfigStatusCard from './components/ConfigStatusCard';
import './styles.scss';

const Reports = ({
  hostName,
  status,
  hostInfo: {
    puppet_proxy_name: proxyName,
    puppet_ca_proxy_name: caProxy,
    environment_name: env,
    puppet_proxy_id: proxyId,
    puppet_ca_proxy_id: caProxyId,
  },
}) => (
  <div className="report-tab">
    <Grid hasGutter>
      <GridItem span={8}>
        <ConfigStatusCard hostName={hostName} parentStatus={status} />
      </GridItem>
      <GridItem span={4}>
        <DescriptionCard
          proxyName={proxyName}
          caProxy={caProxy}
          proxyId={proxyId}
          caProxyId={caProxyId}
          env={env}
          status={status}
        />
      </GridItem>
      <GridItem span={12}>
        <ReportsTab hostName={hostName} origin="Puppet" />
      </GridItem>
    </Grid>
  </div>
);

Reports.propTypes = {
  hostName: PropTypes.string,
  hostInfo: PropTypes.object,
  status: PropTypes.string,
};

Reports.defaultProps = {
  hostName: undefined,
  hostInfo: {},
  status: undefined,
};

export default Reports;

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_puppet-8.0.0 webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js
foreman_puppet-6.4.0 webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js
foreman_puppet-7.0.0 webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js
foreman_puppet-6.3.0 webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js
foreman_puppet-6.2.0 webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js