mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: update chart and chart text color
This commit is contained in:
@@ -83,10 +83,7 @@ export function Dashboard() {
|
||||
dateFrom && dateTo
|
||||
? `${DailyChecklistApi.basePath}/summary?date_from=${dateFrom}&date_to=${dateTo}&kandang_id=${kandangFilter === 'ALL' ? '' : kandangFilter}&category=${categoryFilter === 'ALL' ? '' : categoryFilter}`
|
||||
: '',
|
||||
httpClientFetcher,
|
||||
{
|
||||
keepPreviousData: true,
|
||||
}
|
||||
httpClientFetcher
|
||||
);
|
||||
|
||||
const { options: kandangOptions, isLoadingOptions: isLoadingKandangs } =
|
||||
@@ -311,14 +308,14 @@ export function Dashboard() {
|
||||
<Bar
|
||||
dataKey='remaining'
|
||||
stackId='a'
|
||||
fill='#E5E7EB'
|
||||
fill='#878c96'
|
||||
radius={[4, 4, 0, 0]}
|
||||
>
|
||||
{chartData?.map((entry, index) => (
|
||||
<Cell
|
||||
key={`cell-remaining-${index}`}
|
||||
fill={`${entry.color}33`}
|
||||
opacity={0.3}
|
||||
fill={`${entry.color}70`}
|
||||
opacity={0.7}
|
||||
/>
|
||||
))}
|
||||
</Bar>
|
||||
@@ -370,7 +367,7 @@ export function Dashboard() {
|
||||
<tbody>
|
||||
{employeePerformance?.map((emp, index) => (
|
||||
<tr
|
||||
key={emp.employee_id}
|
||||
key={index}
|
||||
className={
|
||||
index % 2 === 0 ? 'bg-white' : 'bg-gray-50/50'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user