Skip to content

Commit 077b34f

Browse files
committed
fix: lint errors
1 parent c0a2a51 commit 077b34f

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

packages/scratch-gui/src/components/cards/cards.jsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff 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)}

packages/scratch-gui/src/containers/tips-library.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

packages/scratch-gui/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {buildInitialState} from './reducers/gui';
22
import {legacyConfig} from './legacy-config';
33

44
export {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';
66
export {default as AppStateHOC} from './lib/app-state-hoc.jsx';
77
export {remixProject} from './reducers/project-state.js';
88
export {setAppElement} from 'react-modal';

0 commit comments

Comments
 (0)