1
1
import { ErrorBoundary } from 'app/components/ErrorBoundary' ;
2
- import Joyride from 'app/components/Joyride ' ;
2
+ import ReactTour from 'app/components/ReactTour ' ;
3
3
import CodeStatus from 'app/containers/code/CodeStatus' ;
4
4
import Editor from 'app/containers/code/Editor' ;
5
5
import GameLog from 'app/containers/GameLog' ;
@@ -42,7 +42,7 @@ export class Dashboard extends React.Component<
42
42
this . state = {
43
43
fixedLeftPaneWidth,
44
44
editorWidthRatio : this . initialEditorRatio ,
45
- isJoyRideActive : false ,
45
+ isReactTourActive : false ,
46
46
rendererHeight : this . initialRendererHeight ,
47
47
splitPaneState : DashboardInterfaces . SplitPaneState . BOTH ,
48
48
windowWidth : window . innerWidth ,
@@ -69,7 +69,7 @@ export class Dashboard extends React.Component<
69
69
windowWidth,
70
70
fixedLeftPaneWidth,
71
71
splitPaneState,
72
- isJoyRideActive ,
72
+ isReactTourActive ,
73
73
} = this . state ;
74
74
const {
75
75
isLoggedIn,
@@ -107,8 +107,9 @@ export class Dashboard extends React.Component<
107
107
return (
108
108
< div >
109
109
{ isWelcomeModalOpen ? < Welcome closeWelcomeModal = { ( ) => closeWelcomeModal ( ) } /> : null }
110
- { isLoggedIn && isJoyRideActive ? < Joyride toggleJoyRide = { this . onToggleJoyRide } /> : null }
111
-
110
+ { isLoggedIn && isReactTourActive && ! isWelcomeModalOpen ? (
111
+ < ReactTour toggleReactTour = { this . onToggleReactTour } />
112
+ ) : null }
112
113
{ isLoggedIn ? < SocketHandler /> : null }
113
114
< SplitPane
114
115
style = { {
@@ -131,7 +132,7 @@ export class Dashboard extends React.Component<
131
132
} }
132
133
>
133
134
< SideBar
134
- toggleJoyRide = { this . onToggleJoyRide }
135
+ toggleReactTour = { this . onToggleReactTour }
135
136
setIsAuthenticationOpen = { setIsAuthenticationOpen }
136
137
/>
137
138
</ div >
@@ -143,7 +144,9 @@ export class Dashboard extends React.Component<
143
144
>
144
145
< CodeStatus width = { editorWidth } />
145
146
{ this . state . splitPaneState !== DashboardInterfaces . SplitPaneState . RENDERER ? (
146
- < Editor editorWidth = { editorWidth } />
147
+ < div id = "editor_div" >
148
+ < Editor editorWidth = { editorWidth } />
149
+ </ div >
147
150
) : null }
148
151
</ div >
149
152
</ Row >
@@ -208,9 +211,9 @@ export class Dashboard extends React.Component<
208
211
} ) ;
209
212
} ;
210
213
211
- private onToggleJoyRide = ( ) : void => {
214
+ private onToggleReactTour = ( ) : void => {
212
215
this . setState ( {
213
- isJoyRideActive : ! this . state . isJoyRideActive ,
216
+ isReactTourActive : ! this . state . isReactTourActive ,
214
217
} ) ;
215
218
} ;
216
219
}
0 commit comments