chore: update chart and chart text color

This commit is contained in:
ValdiANS
2026-01-21 14:38:21 +07:00
parent 362ae16c7d
commit 426b6bfc85
@@ -83,10 +83,7 @@ export function Dashboard() {
dateFrom && dateTo dateFrom && dateTo
? `${DailyChecklistApi.basePath}/summary?date_from=${dateFrom}&date_to=${dateTo}&kandang_id=${kandangFilter === 'ALL' ? '' : kandangFilter}&category=${categoryFilter === 'ALL' ? '' : categoryFilter}` ? `${DailyChecklistApi.basePath}/summary?date_from=${dateFrom}&date_to=${dateTo}&kandang_id=${kandangFilter === 'ALL' ? '' : kandangFilter}&category=${categoryFilter === 'ALL' ? '' : categoryFilter}`
: '', : '',
httpClientFetcher, httpClientFetcher
{
keepPreviousData: true,
}
); );
const { options: kandangOptions, isLoadingOptions: isLoadingKandangs } = const { options: kandangOptions, isLoadingOptions: isLoadingKandangs } =
@@ -311,14 +308,14 @@ export function Dashboard() {
<Bar <Bar
dataKey='remaining' dataKey='remaining'
stackId='a' stackId='a'
fill='#E5E7EB' fill='#878c96'
radius={[4, 4, 0, 0]} radius={[4, 4, 0, 0]}
> >
{chartData?.map((entry, index) => ( {chartData?.map((entry, index) => (
<Cell <Cell
key={`cell-remaining-${index}`} key={`cell-remaining-${index}`}
fill={`${entry.color}33`} fill={`${entry.color}70`}
opacity={0.3} opacity={0.7}
/> />
))} ))}
</Bar> </Bar>
@@ -370,7 +367,7 @@ export function Dashboard() {
<tbody> <tbody>
{employeePerformance?.map((emp, index) => ( {employeePerformance?.map((emp, index) => (
<tr <tr
key={emp.employee_id} key={index}
className={ className={
index % 2 === 0 ? 'bg-white' : 'bg-gray-50/50' index % 2 === 0 ? 'bg-white' : 'bg-gray-50/50'
} }