mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-20 14:34:06 +01:00
Fix order of donut chart data
This commit is contained in:
parent
2070692c6a
commit
6d0ac33d45
@ -13,8 +13,8 @@ export function DonutChartGraph() {
|
|||||||
const completedTask = response.data.total_completed_tasks || 0;
|
const completedTask = response.data.total_completed_tasks || 0;
|
||||||
|
|
||||||
const donutData = [
|
const donutData = [
|
||||||
{ name: "Completed task", count: totalTask },
|
{ name: "Completed task", count: completedTask },
|
||||||
{ name: "Total task", count: completedTask },
|
{ name: "Total task", count: totalTask },
|
||||||
];
|
];
|
||||||
|
|
||||||
setDonutData(donutData);
|
setDonutData(donutData);
|
||||||
|
|||||||
@ -60,7 +60,7 @@ export function TaskCard({ task, deleteTask, updateTask }) {
|
|||||||
setMouseIsOver(false);
|
setMouseIsOver(false);
|
||||||
}}>
|
}}>
|
||||||
<p
|
<p
|
||||||
className="p-2.5 my-auto w-full overflow-y-auto overflow-x-hidden whitespace-pre-wrap rounded-xl shadow bg-white"
|
className={`p-2.5 my-auto w-full overflow-y-auto overflow-x-hidden whitespace-pre-wrap rounded-xl shadow bg-white`}
|
||||||
onClick={() => document.getElementById(`task_detail_modal_${task.id}`).showModal()}>
|
onClick={() => document.getElementById(`task_detail_modal_${task.id}`).showModal()}>
|
||||||
{task.content}
|
{task.content}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user