Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-confirm-alert

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-confirm-alert - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

31

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc