diff --git a/src/components/collections/AddPayment.jsx b/src/components/collections/AddPayment.jsx
index acea7593..2bc97494 100644
--- a/src/components/collections/AddPayment.jsx
+++ b/src/components/collections/AddPayment.jsx
@@ -7,7 +7,10 @@ import DatePicker from "../common/DatePicker";
import { formatDate } from "date-fns";
import { useCollectionContext } from "../../pages/collections/CollectionPage";
import { useAddPayment, useCollection } from "../../hooks/useCollections";
-import { localToUtc } from "../../utils/appUtils";
+import { formatFigure, localToUtc } from "../../utils/appUtils";
+import { formatUTCToLocalTime } from "../../utils/dateUtils";
+import Avatar from "../common/Avatar";
+import { PaymentHistorySkeleton } from "./CollectionSkeleton";
const AddPayment = ({ onClose }) => {
const { addPayment } = useCollectionContext();
@@ -34,7 +37,7 @@ const AddPayment = ({ onClose }) => {
paymentReceivedDate: localToUtc(formData.paymentReceivedDate),
invoiceId: addPayment.invoiceId,
};
- debugger;
+
AddPayment(payload);
};
const handleClose = (formData) => {
@@ -116,6 +119,59 @@ const AddPayment = ({ onClose }) => {
+ {isLoading ? (
+
+ Date:{" "} + {formatUTCToLocalTime(payment.paymentReceivedDate)} +
{" "} + + {formatFigure(payment.amount, { + type: "currency", + currency: "INR", + })} + ++ Transaction ID:{" "} + {payment.transactionId} +
+