Sha256: c81188ed67c8d3630c38d48c4602a08d6ff7b1fbb2f6fc13e54e4f4c2711f0b7
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
import React from 'react'; import { ListView, Grid, Icon } from 'patternfly-react'; import PropTypes from 'prop-types'; import './foreman_leapp.scss'; import { itemIteratorId, presentSeverity, hasRemediations, getExternals, getRemediations, getTitle, getSeverity, getSummary, getTags, } from './helpers'; const PreupgradeReportEntry = ({ entry }) => ( <ListView.Item key={entry.id} stacked checkboxInput={<input type="checkbox" />} description={entry.title} additionalInfo={[ <ListView.InfoItem key={itemIteratorId(entry, entry.hostname)}> <Icon type="pf" name="cluster" /> {entry.hostname} </ListView.InfoItem>, <ListView.InfoItem key={itemIteratorId(entry, entry.severity)}> <Icon type="pf" name="resources-full" style={{ color: presentSeverity(entry.severity) }} /> {entry.severity} </ListView.InfoItem>, hasRemediations(entry), ]} > <Grid fluid> {getTitle(entry)} {getSeverity(entry)} {getSummary(entry)} {getTags(entry)} {getExternals(entry)} {getRemediations(entry)} </Grid> </ListView.Item> ); PreupgradeReportEntry.propTypes = { entry: PropTypes.object.isRequired, }; export default PreupgradeReportEntry;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_leapp-0.0.6 | webpack/components/PreupgradeReportsList/components/PreupgradeReportEntry.js |