@depay/react-dialog-stack
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -76,4 +76,4 @@ import React from 'react'; | ||
if (props.setNavigate) { | ||
props.setNavigate(this.navigate.bind(this)); | ||
if (props.setNavigator) { | ||
props.setNavigator(this); | ||
} | ||
@@ -80,0 +80,0 @@ |
@@ -83,4 +83,4 @@ (function (global, factory) { | ||
if (props.setNavigate) { | ||
props.setNavigate(this.navigate.bind(this)); | ||
if (props.setNavigator) { | ||
props.setNavigator(this); | ||
} | ||
@@ -87,0 +87,0 @@ |
{ | ||
"name": "@depay/react-dialog-stack", | ||
"moduleName": "ReactDialogStack", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "A flexible dialog stack for react widgets.", | ||
@@ -6,0 +6,0 @@ "main": "./dist/umd/index.js", |
@@ -83,7 +83,7 @@ ## Quickstart | ||
`setNavigate (function)`: A function which will be called from the stack construtor to share the navigate function with the outside: | ||
`setNavigator (function)`: A function which will be called from the stack construtor to share the navigator to the outside: | ||
```javascript | ||
const setNavigate = (navigator)=> { | ||
window.navigate = navigator | ||
const setNavigator = (navigator)=> { | ||
window.dialogNavigator = navigator | ||
} | ||
@@ -95,3 +95,3 @@ | ||
close={this.close} | ||
setNavigate={setNavigate} | ||
setNavigator={setNavigator} | ||
open={this.state.showDialog} | ||
@@ -102,3 +102,4 @@ /> | ||
window.navigate('AnotherDialog') | ||
window.dialogNavigator.navigate('AnotherDialog') | ||
window.dialogNavigator.set('AnotherDialog') | ||
``` | ||
@@ -105,0 +106,0 @@ |
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
21616
237