IO-306 Dashboard monthly employee efficiency

This commit is contained in:
Patrick Fic
2021-06-16 10:51:53 -07:00
parent f20ef2d11d
commit 914a7e3c7b
11 changed files with 250 additions and 16 deletions

View File

@@ -42,11 +42,17 @@ export function DashboardTotalProductionHours({
return (
<Card {...cardProps} title={t("dashboard.titles.prodhrssummary")}>
<Space wrap style={{ flex: 1 }}>
<Statistic title={t("dashboard.labels.bodyhrs")} value={hours.body} />
<Statistic title={t("dashboard.labels.refhrs")} value={hours.ref} />
<Statistic
title={t("dashboard.labels.bodyhrs")}
value={hours.body.toFixed(1)}
/>
<Statistic
title={t("dashboard.labels.refhrs")}
value={hours.ref.toFixed(1)}
/>
<Statistic
title={t("dashboard.labels.prodhrs")}
value={hours.total}
value={hours.total.toFixed(1)}
valueStyle={{ color: aboveTargetHours ? "green" : "red" }}
/>
</Space>