react-confirm-alert
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -57,3 +57,3 @@ 'use strict'; | ||
var cancelLabel = _props.cancelLabel; | ||
var children = _props.children; | ||
var childrenElement = _props.childrenElement; | ||
@@ -66,3 +66,3 @@ return _react2['default'].createElement( | ||
{ className: 'react-confirm-alert' }, | ||
_react2['default'].createElement( | ||
title && _react2['default'].createElement( | ||
'h1', | ||
@@ -72,3 +72,3 @@ null, | ||
), | ||
_react2['default'].createElement( | ||
message && _react2['default'].createElement( | ||
'h3', | ||
@@ -78,7 +78,7 @@ null, | ||
), | ||
children, | ||
childrenElement(), | ||
_react2['default'].createElement( | ||
'div', | ||
{ className: 'react-confirm-alert-button-group' }, | ||
_react2['default'].createElement( | ||
cancelLabel && _react2['default'].createElement( | ||
'button', | ||
@@ -88,3 +88,3 @@ { onClick: this.onClickCancel }, | ||
), | ||
_react2['default'].createElement( | ||
confirmLabel && _react2['default'].createElement( | ||
'button', | ||
@@ -114,8 +114,15 @@ { onClick: this.onClickConfirm }, | ||
value: { | ||
title: 'Confirm', | ||
message: 'Are you sure to do this.', | ||
confirmLabel: 'Confirm', | ||
cancelLabel: 'Cancel', | ||
onConfirm: function onConfirm() {}, | ||
onCancel: function onCancel() {} | ||
title: false, | ||
message: false, | ||
childrenElement: function childrenElement() { | ||
return null; | ||
}, | ||
confirmLabel: false, | ||
cancelLabel: false, | ||
onConfirm: function onConfirm() { | ||
return null; | ||
}, | ||
onCancel: function onCancel() { | ||
return null; | ||
} | ||
}, | ||
@@ -122,0 +129,0 @@ enumerable: true |
{ | ||
"name": "react-confirm-alert", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "react component confirm dialog.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -24,2 +24,3 @@ # react-confirm-alert | ||
message: 'Are you sure to do this.', // Message dialog | ||
childrenElement: () => <div>Custom UI</div>, // Custom UI or Component | ||
confirmLabel: 'Confirm', // Text button confirm | ||
@@ -26,0 +27,0 @@ cancelLabel: 'Cancel', // Text button cancel |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162597
767
69