Browse Source

Fix health by budget

pull/2/head
Wahyu Ramadhan 2 years ago
parent
commit
0aaeb16ea7
  1. 2
      src/views/Dashboard/Components/index.js
  2. 2
      src/views/Dashboard/DashboardBOD.js

2
src/views/Dashboard/Components/index.js

@ -106,7 +106,7 @@ export const HealthByBudget = ({status}) => {
let bgColor = '#52AC0B'; // on-budget
if (status && status !== '-') {
if (status === 'warning') bgColor = '#ED7014';
else if (status === 'danger') bgColor = '#D0312D';
else if (status === 'overrun') bgColor = '#D0312D';
}
return (
<div style={{backgroundColor: bgColor, color: '#FFFFFF', padding: 5, borderRadius: 10, marginBottom: 10, minHeight: 25}}>

2
src/views/Dashboard/DashboardBOD.js

@ -347,7 +347,7 @@ const DashboardBOD = () => {
"invoice": item.invoice?.invoiced ? toRupiah(item.invoice.invoiced) : '-',
"cash_in": item.invoice?.paid ? toRupiah(item.invoice.paid) : '-',
"outstanding_balance": outstanding_balance,
"budget": <HealthByBudget status {...item.budget_health} />,
"budget": <HealthByBudget status={item.budget_health} />,
"schedule": <HealthBySchedule status={statusHealthBySchedule} />
})
});

Loading…
Cancel
Save