From 0052fed1e64cacedd73bb88147b92bfac1b9b8e2 Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Tue, 14 Oct 2025 18:20:36 +0530 Subject: [PATCH] integrated comment api added comment and payments history inside view collection --- src/components/collections/AddPayment.jsx | 74 +++++--- src/components/collections/Comment.jsx | 84 +++++++++ .../collections/PaymentHistoryTable.jsx | 56 ++++++ src/components/collections/ViewCollection.jsx | 177 ++++++++++-------- .../collections/collectionSchema.jsx | 7 + src/components/common/Avatar.jsx | 2 +- src/hooks/useCollections.js | 19 ++ src/repositories/ColllectionRepository.jsx | 3 +- src/utils/appUtils.js | 2 +- 9 files changed, 315 insertions(+), 109 deletions(-) create mode 100644 src/components/collections/Comment.jsx create mode 100644 src/components/collections/PaymentHistoryTable.jsx diff --git a/src/components/collections/AddPayment.jsx b/src/components/collections/AddPayment.jsx index 2bc97494..d3e01146 100644 --- a/src/components/collections/AddPayment.jsx +++ b/src/components/collections/AddPayment.jsx @@ -42,7 +42,6 @@ const AddPayment = ({ onClose }) => { }; const handleClose = (formData) => { reset(defaultPayment); - onClose(); }; return ( @@ -96,6 +95,19 @@ const AddPayment = ({ onClose }) => { {errors.amount.message} )} +
+ +