You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
679 B

import Modal from './Modal';
import confirm from './confirm';
Modal.info = function (props) {
const config = {
...props,
iconClassName: 'info-circle',
okCancel: false,
};
return confirm(config);
};
Modal.success = function (props) {
const config = {
...props,
iconClassName: 'check-circle',
okCancel: false,
};
return confirm(config);
};
Modal.error = function (props) {
const config = {
...props,
iconClassName: 'cross-circle',
okCancel: false,
};
return confirm(config);
};
Modal.confirm = function (props) {
const config = {
...props,
okCancel: true,
};
return confirm(config);
};
export default Modal;