|
|
|
@ -24,7 +24,6 @@ export const ModalProvider = ({ children = [], reducer = modalReducer, initialSt |
|
|
|
|
|
|
|
|
|
const modal = (modalData: AppModal) => { |
|
|
|
|
const { id, title, message, validationFn, okLabel, okFn, cancelLabel, cancelFn, modalType, modalParentClass, defaultValue, hideFn, data, preventBlur } = modalData |
|
|
|
|
console.log('modalData', modalData) |
|
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
dispatch({ |
|
|
|
|
type: modalActionTypes.setModal, |
|
|
|
|