import React from 'react'; import { monthlyExpensesComplete } from '../../../initial_state'; export default class ProgressPanel extends React.PureComponent { render() { if (!monthlyExpensesComplete) return null; const completed = Math.min(monthlyExpensesComplete, 100); const style = { width: `${completed}%`, }; return (
Gab's Operational Expenses
We are 100% funded by you.
{completed}% covered this month
) } }