added CreateContactCategory in master modal
This commit is contained in:
parent
74ed8d3c4f
commit
40df12de86
@ -13,6 +13,7 @@ import {cacheData, getCachedData} from "../../slices/apiDataManager";
|
|||||||
import showToast from "../../services/toastService";
|
import showToast from "../../services/toastService";
|
||||||
import CreateWorkCategory from "./CreateWorkCategory";
|
import CreateWorkCategory from "./CreateWorkCategory";
|
||||||
import EditWorkCategory from "./EditWorkCategory";
|
import EditWorkCategory from "./EditWorkCategory";
|
||||||
|
import CreateCategory from "./CreateContactCategory";
|
||||||
|
|
||||||
|
|
||||||
const MasterModal = ({ modaldata, closeModal }) => {
|
const MasterModal = ({ modaldata, closeModal }) => {
|
||||||
@ -74,7 +75,6 @@ const MasterModal = ({ modaldata, closeModal }) => {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="modal fade"
|
className="modal fade"
|
||||||
@ -93,13 +93,16 @@ const MasterModal = ({ modaldata, closeModal }) => {
|
|||||||
>
|
>
|
||||||
<div className="modal-content">
|
<div className="modal-content">
|
||||||
<div className="modal-body p-sm-4 p-0">
|
<div className="modal-body p-sm-4 p-0">
|
||||||
<button
|
<div className="d-flex justify-content-between">
|
||||||
|
<h6>{ `${modaldata?.modalType} `}</h6>
|
||||||
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-close"
|
className="btn-close"
|
||||||
data-bs-dismiss="modal"
|
data-bs-dismiss="modal"
|
||||||
aria-label="Close"
|
aria-label="Close"
|
||||||
onClick={closeModal}
|
onClick={closeModal}
|
||||||
></button>
|
></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
{modaldata.modalType === "Application Role" && (
|
{modaldata.modalType === "Application Role" && (
|
||||||
<CreateRole masmodalType={modaldata.masterType} onClose={closeModal} />
|
<CreateRole masmodalType={modaldata.masterType} onClose={closeModal} />
|
||||||
@ -125,6 +128,9 @@ const MasterModal = ({ modaldata, closeModal }) => {
|
|||||||
{modaldata.modalType === "Edit-Work Category" && (
|
{modaldata.modalType === "Edit-Work Category" && (
|
||||||
<EditWorkCategory data={modaldata.item} onClose={closeModal} />
|
<EditWorkCategory data={modaldata.item} onClose={closeModal} />
|
||||||
)}
|
)}
|
||||||
|
{modaldata.modalType === "Contact Category" && (
|
||||||
|
<CreateCategory data={modaldata.item} onClose={closeModal} />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user