Masters Popup all heading show in Center align.

This commit is contained in:
Kartik Sharma 2025-09-05 11:19:35 +05:30
parent f56fd23cbf
commit 0db0edec1a

View File

@ -119,17 +119,22 @@ const MasterModal = ({ modaldata, closeModal }) => {
<div className={`modal-dialog mx-sm-auto mx-1 ${isLargeModal ? "modal-lg" : "modal-md"} modal-simple`}>
<div className="modal-content">
<div className="modal-body p-sm-4 p-0">
<div className="d-flex justify-content-between">
<h6>{modaldata?.modalType}</h6>
{/* ✅ Centered Heading */}
<div className="d-flex justify-content-between align-items-center">
<h5 className="modal-title w-100 text-center mb-0">
{modaldata?.modalType}
</h5>
<button
type="button"
className="btn-close"
className="btn-close position-absolute end-0 me-3"
data-bs-dismiss="modal"
aria-label="Close"
onClick={closeModal}
/>
</div>
{renderModalContent()}
{/* ✅ Render Modal Body */}
<div className="mt-3">{renderModalContent()}</div>
</div>
</div>
</div>