We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81b97ff commit 70962b8Copy full SHA for 70962b8
src/lazy-components/modal-tour/index.js
@@ -74,6 +74,7 @@ const ModalTour = memo( props => {
74
// eslint-disable-next-line no-unused-vars
75
postStep = NOOP, // If provided, this is a function to run after the step is shown.
76
skipIf = NOOP, // If provided, this is a function to check if the step should be skipped.
77
+ modalDelay = 200, // If provided, this is the delay in milliseconds to show the modal.
78
} = steps[ currentStep ]
79
80
useEffect( () => {
@@ -149,7 +150,7 @@ const ModalTour = memo( props => {
149
150
setIsVisibleDelayed( true )
151
setIsTransitioning( false )
152
}, 150 )
- }, 200 )
153
+ }, modalDelay )
154
}, 100 )
155
156
setTimeout( () => {
0 commit comments