File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -362,18 +362,21 @@ const Cards = props => {
362362 />
363363 ) : (
364364 steps [ step ] . video ? (
365- platform !== PLATFORM . DESKTOP ? (
366- < VideoStep
367- dragging = { dragging }
368- expanded = { expanded }
369- video = { translateVideo ( steps [ step ] . video , locale ) }
370- />
371- ) : ( // Else show the deck image and title
372- < ImageStep
373- image = { content [ activeDeckId ] . img }
374- title = { content [ activeDeckId ] . name }
375- />
376- )
365+ platform === PLATFORM . DESKTOP ?
366+ // Assume user is offline and don't attempt to
367+ // download videos
368+ (
369+ < ImageStep
370+ image = { content [ activeDeckId ] . img }
371+ title = { content [ activeDeckId ] . name }
372+ />
373+ ) : (
374+ < VideoStep
375+ dragging = { dragging }
376+ expanded = { expanded }
377+ video = { translateVideo ( steps [ step ] . video , locale ) }
378+ />
379+ )
377380 ) : (
378381 < ImageStep
379382 image = { translateImage ( steps [ step ] . image , locale ) }
Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ class TipsLibrary extends React.PureComponent {
7373 const isProjectTutorial = Object . prototype . hasOwnProperty . call ( deck , 'requiredProjectId' ) ;
7474 const isVideoOnlyTutorial = decksLibraryContent [ id ] . steps . filter ( s => s . title ) . length === 0 ;
7575
76- if ( isProjectTutorial && ( this . props . hideTutorialProjects || this . props . platform === PLATFORM . DESKTOP ) ) {
76+ if ( isProjectTutorial &&
77+ ( this . props . hideTutorialProjects || this . props . platform === PLATFORM . DESKTOP )
78+ ) {
7779 return false ;
7880 }
7981
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import {buildInitialState} from './reducers/gui';
22import { legacyConfig } from './legacy-config' ;
33
44export { default } from './containers/gui.jsx' ;
5- export { default as GUIComponent } from './components/gui/gui.jsx'
5+ export { default as GUIComponent } from './components/gui/gui.jsx' ;
66export { default as AppStateHOC } from './lib/app-state-hoc.jsx' ;
77export { remixProject } from './reducers/project-state.js' ;
88export { setAppElement } from 'react-modal' ;
You can’t perform that action at this time.
0 commit comments