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 */}