export default class ProgressBar extends PureComponent { static propTypes = { progress: PropTypes.number, } render() { const { progress } = this.props const completed = Math.min(parseFloat(progress), 100) const style = { width: `${completed}%`, } return (
{completed}% covered this month ) } }