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 */}