From 459f9024bf92ce104ca8a0f1e8f84917e519be7a Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Tue, 18 Dec 2018 17:14:18 -0200 Subject: [PATCH 1/2] Add close function to trigger onRequestClose This commit will add the close function to pass inside the content prop inside steps --- src/TourPortal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TourPortal.js b/src/TourPortal.js index 353807e4..051dd5f7 100644 --- a/src/TourPortal.js +++ b/src/TourPortal.js @@ -478,6 +478,7 @@ class TourPortal extends Component { {steps[current] && (typeof steps[current].content === 'function' ? steps[current].content({ + close: onRequestClose goTo: this.gotoStep, inDOM, step: current + 1, From 5490acd00a26ee18851db9c0b6470219203d44e6 Mon Sep 17 00:00:00 2001 From: gdsrosa Date: Tue, 18 Dec 2018 19:32:12 -0200 Subject: [PATCH 2/2] Add a comma to fix lint warning --- src/TourPortal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TourPortal.js b/src/TourPortal.js index 051dd5f7..d0fcf737 100644 --- a/src/TourPortal.js +++ b/src/TourPortal.js @@ -478,7 +478,7 @@ class TourPortal extends Component { {steps[current] && (typeof steps[current].content === 'function' ? steps[current].content({ - close: onRequestClose + close: onRequestClose, goTo: this.gotoStep, inDOM, step: current + 1,