Fix order of donut chart data

This commit is contained in:
Pattadon 2023-11-26 01:40:06 +07:00
parent 2070692c6a
commit 6d0ac33d45
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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>