import React from 'react'; import PropTypes from 'prop-types'; import { Row } from 'reactstrap'; import Job from './Job'; import { filterJobs } from './helpers'; export default class JobListMetric extends React.PureComponent { render() { const { data, repo, revision, showParentMatches } = this.props; const { name, details } = data; const jobs = filterJobs(details, showParentMatches); const msgForZeroJobs = details.length && !jobs.length ? `All failed ${name} also failed in Parent Push` : `All ${name} passed`; return (