ant-design/components/modal/index.jsx
Bruce Mitchener 11c0a6a203 Name classes without Ant* prefix.
Where necessary, prefix the classes imported from react-component
with 'Rc' rather than prefixing the Ant classes with 'Ant'.

The prefixing of Ant classes wasn't consistent and isn't necessary
in many cases.
2016-03-21 20:16:38 +07:00

37 lines
771 B
JavaScript

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