From 0fc460b38ff211f9578c37da0272eb9e2033825a Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Tue, 20 May 2025 18:02:37 +0530 Subject: [PATCH] set up props variable close button display or not --- src/components/common/GlobalModel.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/common/GlobalModel.jsx b/src/components/common/GlobalModel.jsx index afac3c42..61e09750 100644 --- a/src/components/common/GlobalModel.jsx +++ b/src/components/common/GlobalModel.jsx @@ -8,7 +8,8 @@ const GlobalModel = ({ dialogClass = '', // For additional custom classes on modal dialog role = 'dialog', // Accessibility role for the modal size = '', // Dynamically set the size (sm, lg, xl) - dataAttributes = {} // Additional dynamic data-bs-* attributes + dataAttributes = {}, // Additional dynamic data-bs-* attributes + IsCloseBtn=true }) => { const modalRef = useRef(null); // Reference to the modal element @@ -69,13 +70,13 @@ useEffect(() => {
{/* Close button inside the modal header */} - + >}
{children} {/* Render children here, which can be the ReportTask component */}