mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-19 05:54:07 +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 donutData = [
|
||||
{ name: "Completed task", count: totalTask },
|
||||
{ name: "Total task", count: completedTask },
|
||||
{ name: "Completed task", count: completedTask },
|
||||
{ name: "Total task", count: totalTask },
|
||||
];
|
||||
|
||||
setDonutData(donutData);
|
||||
|
||||
@ -60,7 +60,7 @@ export function TaskCard({ task, deleteTask, updateTask }) {
|
||||
setMouseIsOver(false);
|
||||
}}>
|
||||
<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()}>
|
||||
{task.content}
|
||||
</p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user