From 58367028d1d109c1e7a571d3c39839084ea1f7fd Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Thu, 30 Oct 2025 11:12:07 +0530 Subject: [PATCH] =?UTF-8?q?=E2=80=9CNo=20data=20found=E2=80=9D=20message?= =?UTF-8?q?=20not=20centered=20in=20Expense=20Breakdown=20chart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dashboard/ExpenseAnalysis.jsx | 152 ++++++++++--------- 1 file changed, 79 insertions(+), 73 deletions(-) diff --git a/src/components/Dashboard/ExpenseAnalysis.jsx b/src/components/Dashboard/ExpenseAnalysis.jsx index f398e8b5..02be212a 100644 --- a/src/components/Dashboard/ExpenseAnalysis.jsx +++ b/src/components/Dashboard/ExpenseAnalysis.jsx @@ -78,86 +78,92 @@ const ExpenseAnalysis = () => { return ( <> - -
-
-
Expense Breakdown
- {/*

Category Wise Expense Breakdown

*/} -

{projectName}

-
-
- - - -
+
+
+
Expense Breakdown
+ {/*

Category Wise Expense Breakdown

*/} +

{projectName}

- {/* Card body */} -
- {isLoading && ( -
- Loading... +
+ + + +
+
+ + {/* Card body */} +
+ {isLoading && ( +
+ Loading... +
+ )} + + {!isLoading && report.length === 0 && ( +
+

No data found

+
+ )} + + + {!isLoading && report.length > 0 && ( + <> + {isFetching && ( +
+ Loading... +
+ )} + +
+
- )} - {!isLoading && report.length === 0 && ( -
No data found
- )} - - {!isLoading && report.length > 0 && ( - <> - {isFetching && ( -
- Loading... -
- )} - -
- -
- -
-
- {report.map((item, idx) => ( -
-
- - - -
-
- {item.projectName} - - {formatCurrency(item.totalApprovedAmount)} - -
+
+
+ {report.map((item, idx) => ( +
+
+ + +
- ))} -
+
+ {item.projectName} + + {formatCurrency(item.totalApprovedAmount)} + +
+
+ ))}
- - )} -
- +
+ + )} +
+ {/* Header */}