diff --git a/src/components/reports/hours-report.tsx b/src/components/reports/hours-report.tsx index 7d75ba2..4edc609 100644 --- a/src/components/reports/hours-report.tsx +++ b/src/components/reports/hours-report.tsx @@ -29,6 +29,15 @@ type HoursItem = { contractedHoursPerMonth?: number | null } +const topClientsChartConfig = { + internas: { + label: "Horas internas", + }, + externas: { + label: "Horas externas", + }, +} + export function HoursReport() { const [timeRange, setTimeRange] = useState("90d") const [query, setQuery] = useState("") @@ -98,26 +107,29 @@ export function HoursReport() { {!filteredWithComputed || filteredWithComputed.length === 0 ? (

Sem dados para o perĂ­odo.

) : ( - + b.total - a.total) .slice(0, 10) .map((r) => ({ name: r.name, internas: r.internal, externas: r.external }))} - margin={{ left: 12, right: 12, bottom: 28 }} + margin={{ top: 8, left: 20, right: 20, bottom: 56 }} + barCategoryGap={32} > - - - + + + ( <> - {name} + + {name === "internas" ? "Horas internas" : "Horas externas"} + {formatHoursCompact(Number(value))} )}