You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/guided-modal-tour/index.js
+37-11Lines changed: 37 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
-
import{i18n}from'stackable'
1
+
import{
2
+
i18n,
3
+
guidedTourStates,// TODO: This doesn't exist yet. The state should be loaded here from localize values, this should be an object with the tour ID as the key and the state as the value.
4
+
}from'stackable'
2
5
importclassNamesfrom'classnames'
3
6
4
7
import{
@@ -41,6 +44,29 @@ const STEPS = [
41
44
42
45
constNOOP=()=>{}
43
46
47
+
// The main tour component.
48
+
constGuidedModalTour=props=>{
49
+
const{
50
+
steps =STEPS,
51
+
tourId ='',// This is the ID of the tour, this will be used to store the tour state in the database.
52
+
}=props
53
+
54
+
// On mount, check if the tour has been completed, if so, don't show it.
0 commit comments