@@ -18,8 +18,6 @@ import closeIcon from './icon--close.svg';
1818import { translateVideo } from '../../lib/libraries/decks/translate-video.js' ;
1919import { translateImage } from '../../lib/libraries/decks/translate-image.js' ;
2020
21- import { PLATFORM } from '../../lib/platform.js' ;
22-
2321const CardHeader = ( { onCloseCards, onShrinkExpandCards, onShowAll, totalSteps, step, expanded} ) => (
2422 < div className = { expanded ? styles . headerButtons : classNames ( styles . headerButtons , styles . headerButtonsHidden ) } >
2523 < div
@@ -295,7 +293,7 @@ const Cards = props => {
295293 onPrevStep,
296294 step,
297295 expanded,
298- platform ,
296+ showVideos ,
299297 ...posProps
300298 } = props ;
301299 let { x, y} = posProps ;
@@ -362,20 +360,18 @@ const Cards = props => {
362360 />
363361 ) : (
364362 steps [ step ] . video ? (
365- platform === PLATFORM . DESKTOP ?
366- // Assume user is offline and don't attempt to
367- // download videos
363+ showVideos ?
368364 (
369- < ImageStep
370- image = { content [ activeDeckId ] . img }
371- title = { content [ activeDeckId ] . name }
372- />
373- ) : (
374365 < VideoStep
375366 dragging = { dragging }
376367 expanded = { expanded }
377368 video = { translateVideo ( steps [ step ] . video , locale ) }
378369 />
370+ ) : (
371+ < ImageStep
372+ image = { content [ activeDeckId ] . img }
373+ title = { content [ activeDeckId ] . name }
374+ />
379375 )
380376 ) : (
381377 < ImageStep
@@ -426,7 +422,7 @@ Cards.propTypes = {
426422 onShowAll : PropTypes . func ,
427423 onShrinkExpandCards : PropTypes . func . isRequired ,
428424 onStartDrag : PropTypes . func ,
429- platform : PropTypes . oneOf ( Object . keys ( PLATFORM ) ) ,
425+ showVideos : PropTypes . bool ,
430426 step : PropTypes . number . isRequired ,
431427 x : PropTypes . number ,
432428 y : PropTypes . number
0 commit comments