react-redux-toastr
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "react-redux-toastr", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "react-redux-toastr is a React toastr message implemented with Redux", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -16,3 +16,3 @@ ##`react-redux-toastr` [demo](http://diegoddox.github.io/react-redux-toastr/) | ||
``` | ||
<link href="http://diegoddox.github.io/react-redux-toastr/2.2.0/react-redux-toastr.min.css" rel="stylesheet" type="text/css"> | ||
<link href="http://diegoddox.github.io/react-redux-toastr/3.0.0/react-redux-toastr.min.css" rel="stylesheet" type="text/css"> | ||
``` | ||
@@ -19,0 +19,0 @@ ##### 3. The third thing you need to do is to add the `react-redux-toastr` `reducer` to Redux. |
@@ -63,2 +63,3 @@ 'use strict'; | ||
<button type="button" onClick={() => toastr.message('## Message', {component: messageComp})}>message</button> | ||
<button type="button" onClick={() => toastr.confirm('## confirm')}>confirm</button> | ||
</div> | ||
@@ -65,0 +66,0 @@ {this.renderDev()} |
@@ -33,3 +33,3 @@ 'use strict'; | ||
this._removeConfirm(); | ||
if (options.onOk) { | ||
if (options && options.onOk) { | ||
options.onOk(); | ||
@@ -47,3 +47,3 @@ } | ||
this._removeConfirm(); | ||
if (options.onCancel) { | ||
if (options && options.onCancel) { | ||
options.onCancel(); | ||
@@ -50,0 +50,0 @@ } |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
46348
650
1