Skip to content

Commit 81e46f9

Browse files
committed
add more missing props in mapStateToProps
1 parent a240a2a commit 81e46f9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,35 @@ PreviewFrame.defaultProps = {
366366
const mapStateToProps = state => ({
367367
files: state.files,
368368
htmlFile: getHTMLFile(state.files),
369+
content:
370+
(state.files.find(file => file.isSelectedFile) ||
371+
state.files.find(file => file.name === 'sketch.js') ||
372+
state.files.find(file => file.name !== 'root')).content,
369373
isPlaying: state.ide.isPlaying,
370374
isAccessibleOutputPlaying: state.ide.isAccessibleOutputPlaying,
371375
previewIsRefreshing: state.ide.previewIsRefreshing,
372376
textOutput: state.preferences.textOutput,
373377
gridOutput: state.preferences.gridOutput,
374378
soundOutput: state.preferences.soundOutput,
379+
language: state.preferences.language,
380+
autorefresh: state.preferences.autorefresh,
375381
});
376382

383+
384+
/*
385+
setTextOutput={this.props.setTextOutput}
386+
setGridOutput={this.props.setGridOutput}
387+
setSoundOutput={this.props.setSoundOutput}
388+
dispatchConsoleEvent={this.props.dispatchConsoleEvent}
389+
endSketchRefresh={this.props.endSketchRefresh}
390+
stopSketch={this.props.stopSketch}
391+
setBlobUrl={this.props.setBlobUrl}
392+
expandConsole={this.props.expandConsole}
393+
clearConsole={this.props.clearConsole}
394+
cmController={this.cmController}
395+
*/
396+
397+
377398
const mapDispatchToProps = dispatch => bindActionCreators(
378399
Object.assign(
379400
{},

0 commit comments

Comments
 (0)