export tutorial initialization for www
Export the tutorial card URL query string handling for www. Also fix typo
This commit is contained in:
1 parent
2e08c39213
commit
bc444149d5
2 files changed
+6
-3
No files matched your search
+5
-2
@@ -1,6 +1,7 @@
|
||||
import GUI from './containers/gui.jsx';
|
||||
import AppStateHOC from './lib/app-state-hoc.jsx';
|
||||
import GuiReducer, {guiInitialState, guiMiddleware, initFullScreen, initPlayer} from './reducers/gui';
|
||||
import {detectTutorialId} from './lib/tutorial-from-url';
|
||||
import GuiReducer, {guiInitialState, guiMiddleware, initFullScreen, initPlayer, initTutorialCard} from './reducers/gui';
|
||||
import LocalesReducer, {localesInitialState, initLocale} from './reducers/locales';
|
||||
import {ScratchPaintReducer} from 'scratch-paint';
|
||||
import {setFullScreen, setPlayer} from './reducers/mode';
|
||||
@@ -24,5 +25,7 @@ export {
|
||||
initLocale,
|
||||
localesInitialState,
|
||||
setFullScreen,
|
||||
setPlayer
|
||||
setPlayer,
|
||||
detectTutorialId,
|
||||
initTutorialCard
|
||||
};
|
||||
@@ -70,7 +70,7 @@ const AppStateHOC = function (WrappedComponent, localesOnly) {
|
||||
if (tutorialId !== null) {
|
||||
// When loading a tutorial from the URL,
|
||||
// load w/o preview modal
|
||||
// open requested tutorial card or tutorials mocal for 'all'
|
||||
// open requested tutorial card or tutorials library modal for 'all'
|
||||
if (tutorialId === 'all') {
|
||||
initializedGui = initTutorialLibrary(initializedGui);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user