flow-coverage-report
Version:
Generate an HTML report of the flow coverage data
22 lines (17 loc) • 428 B
JSX
;
// @flow
import React from 'react';
import type {Node} from 'react';
const FlowCoverageMeterBar = (
props: {+percent: number, +threshold: number}
): Node => {
const {threshold} = props;
const color = props.percent >= threshold ? 'green' : 'red';
const style = {
padding: 0, height: 12
};
return (
<div className={'row ' + color} style={style}/>
);
};
export default FlowCoverageMeterBar;