From 7f848eeb38ce0b714054a461407a96732a8fa0e2 Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Sat, 25 Oct 2025 11:40:34 +0530 Subject: [PATCH] fixed figure moved out of card --- src/components/Dashboard/Tasks.jsx | 80 +++++++++++++++--------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/src/components/Dashboard/Tasks.jsx b/src/components/Dashboard/Tasks.jsx index e4dcd791..b1e04b09 100644 --- a/src/components/Dashboard/Tasks.jsx +++ b/src/components/Dashboard/Tasks.jsx @@ -16,49 +16,49 @@ const TasksCard = () => { } = useDashboardTasksCardData(projectId); if (isLoading) return ; return ( -
-
-
- Tasks -
+
+ {/* Header */} +
+
+ Tasks +
+
+ + {isError ? ( +
+ + + {error?.message || "Unable to load data at the moment."} + + + + Retry + +
+ ) : ( +
+ {/* Total Tasks */} +
+

+ {tasksCardData?.totalTasks?.toLocaleString() ?? 0} +

+ Total
- {isError ? ( -
- - - - {error?.message || "Unable to load data at the moment."} - - - {" "} - Retry - -
- ) : ( -
-
-

- {tasksCardData?.totalTasks?.toLocaleString() ?? 0} -

- Total -
-
-

- {tasksCardData?.completedTasks?.toLocaleString() ?? 0} -

- Completed -
-
- )} + {/* Completed Tasks */} +
+

+ {tasksCardData?.completedTasks?.toLocaleString() ?? 0} +

+ Completed +
+ )} +
+ ); };