Skip to content

Commit a240a2a

Browse files
committed
pull out the specific parts that PreviewFrame depends on in mapStateToProps
1 parent e15c21b commit a240a2a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,12 @@ PreviewFrame.defaultProps = {
366366
const mapStateToProps = state => ({
367367
files: state.files,
368368
htmlFile: getHTMLFile(state.files),
369-
...state.ide,
370-
...state.preferences,
371-
...state.project,
372-
...state.editorAccessibility
369+
isPlaying: state.ide.isPlaying,
370+
isAccessibleOutputPlaying: state.ide.isAccessibleOutputPlaying,
371+
previewIsRefreshing: state.ide.previewIsRefreshing,
372+
textOutput: state.preferences.textOutput,
373+
gridOutput: state.preferences.gridOutput,
374+
soundOutput: state.preferences.soundOutput,
373375
});
374376

375377
const mapDispatchToProps = dispatch => bindActionCreators(

0 commit comments

Comments
 (0)