From aa947b791be72cec3823eb4473b99e63b0fd52da Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Wed, 15 Oct 2025 15:42:30 +0530 Subject: [PATCH] added paymentadjustment head crud operation --- src/components/Layout/Header.jsx | 4 +- src/components/collections/AddPayment.jsx | 4 +- src/components/collections/CollectionList.jsx | 3 + src/components/collections/Comment.jsx | 2 +- .../collections/PaymentHistoryTable.jsx | 4 +- src/components/master/MasterModal.jsx | 28 ++--- .../ManagePaymentHead.jsx | 107 ++++++++++++++++++ src/hooks/masterHook/useMaster.js | 53 ++++++++- src/hooks/useCollections.js | 3 + src/pages/collections/CollectionPage.jsx | 1 + src/repositories/ColllectionRepository.jsx | 3 +- src/repositories/MastersRepository.jsx | 5 +- 12 files changed, 190 insertions(+), 27 deletions(-) create mode 100644 src/components/master/paymentAdjustmentHead/ManagePaymentHead.jsx diff --git a/src/components/Layout/Header.jsx b/src/components/Layout/Header.jsx index ae72921a..3c4b5f86 100644 --- a/src/components/Layout/Header.jsx +++ b/src/components/Layout/Header.jsx @@ -34,6 +34,8 @@ const Header = () => { const isDashboardPath = /^\/dashboard$/.test(location.pathname) || /^\/$/.test(location.pathname); const isProjectPath = /^\/projects$/.test(location.pathname); + const isCollectionPath = + /^\/collection$/.test(location.pathname) || /^\/$/.test(location.pathname); const showProjectDropdown = (pathname) => { const isDirectoryPath = /^\/directory$/.test(pathname); @@ -216,7 +218,7 @@ const Header = () => { className="dropdown-menu" style={{ overflow: "auto", maxHeight: "300px" }} > - {isDashboardPath && ( + {(isDashboardPath|| isCollectionPath) &&(