Skip to content

Commit b0929a5

Browse files
change name and change timings
1 parent acb8ad7 commit b0929a5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/guided-modal-tour/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Internal dependencies
33
*/
4-
import { TOURS } from './tours'
4+
import { TOUR_STEPS } from './tour-steps'
55

66
/**
77
* External dependencies
@@ -33,7 +33,7 @@ const NOOP = () => {}
3333
const GuidedModalTour = props => {
3434
const {
3535
hasConfetti = true,
36-
tourId = '', // This is the ID of the tour, this will be used to store the tour state in the database.
36+
tourId = '', // This is the ID of the tour, this will be used to store the tour state in the database and to get the steps.
3737
} = props
3838

3939
// On mount, check if the tour has been completed, if so, don't show it.
@@ -44,7 +44,7 @@ const GuidedModalTour = props => {
4444
}
4545

4646
return <ModalTour
47-
steps={ TOURS[ tourId ] }
47+
steps={ TOUR_STEPS[ tourId ] }
4848
hasConfetti={ hasConfetti }
4949
onClose={ () => {
5050
// TODO: Save the tour state to the database that we finished it.
@@ -96,8 +96,8 @@ const ModalTour = props => {
9696
setIsVisible( true )
9797
setTimeout( () => {
9898
setIsVisibleDelayed( true )
99-
}, 50 )
100-
}, 1000 )
99+
}, 150 )
100+
}, 1500 )
101101

102102
return () => clearTimeout( timer )
103103
}, [] )

src/components/guided-modal-tour/tours.js renamed to src/components/guided-modal-tour/tour-steps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { __ } from '@wordpress/i18n'
22
import { i18n } from 'stackable'
33

4-
export const TOURS = {
4+
export const TOUR_STEPS = {
55
'editor-welcome': [
66
{
77
title: '👋 ' + __( 'Welcome to Stackable', i18n ),

0 commit comments

Comments
 (0)