feat:Fixed all the UI Pages

This commit is contained in:
2025-03-26 21:31:14 +05:30
parent aba9651c43
commit b961ef8fd3
27 changed files with 232 additions and 125 deletions
@@ -20,7 +20,7 @@ const FinanceSummary = ({ farmId, financeId }) => {
const [loading, setLoading] = useState(true);
const [error, setError] = useState("");
console.log("Finance id /mljkfgj is : ", financeId);
const {
data: transaction,
@@ -28,7 +28,7 @@ const FinanceSummary = ({ farmId, financeId }) => {
isLoading,
} = useGetTransactionsQuery(financeId);
console.log("Transaction data is : ", transaction);
useEffect(() => {
const fetchSummary = async () => {
@@ -39,7 +39,7 @@ const FinanceSummary = ({ farmId, financeId }) => {
`http://localhost:8000/api/v1/finance/summary/${financeId}`,
{ credentials: "include" }
);
console.log("Summary response:", response);
if (!response.ok) {
throw new Error("Failed to fetch summary");
}