Skip to content
Snippets Groups Projects
Commit 2fb6a484 authored by chrisgarrity's avatar chrisgarrity
Browse files

Fix warnings

- empty MapDispatchToProps (dispatch)
- remove `on…` VM listeners from props passed to wrapped component.
parent c02a5ad5
No related branches found
No related tags found
No related merge requests found
...@@ -64,5 +64,7 @@ const mapStateToProps = state => ({ ...@@ -64,5 +64,7 @@ const mapStateToProps = state => ({
projectRunning: state.scratchGui.vmStatus.running, projectRunning: state.scratchGui.vmStatus.running,
turbo: state.scratchGui.vmStatus.turbo turbo: state.scratchGui.vmStatus.turbo
}); });
// no-op function to prevent dispatch prop being passed to component
const mapDispatchToProps = () => ({});
export default connect(mapStateToProps)(Controls); export default connect(mapStateToProps, mapDispatchToProps)(Controls);
...@@ -78,6 +78,6 @@ const mapStateToProps = state => ({ ...@@ -78,6 +78,6 @@ const mapStateToProps = state => ({
}); });
// no-op function to prevent dispatch prop being passed to component // no-op function to prevent dispatch prop being passed to component
const mapDispatchToProps = () => {}; const mapDispatchToProps = () => ({});
export default connect(mapStateToProps, mapDispatchToProps)(ErrorBoundary); export default connect(mapStateToProps, mapDispatchToProps)(ErrorBoundary);
...@@ -89,6 +89,10 @@ const vmListenerHOC = function (WrappedComponent) { ...@@ -89,6 +89,10 @@ const vmListenerHOC = function (WrappedComponent) {
onKeyUp, onKeyUp,
onMonitorsUpdate, onMonitorsUpdate,
onTargetsUpdate, onTargetsUpdate,
onProjectRunStart,
onProjectRunStop,
onTurboModeOff,
onTurboModeOn,
/* eslint-enable no-unused-vars */ /* eslint-enable no-unused-vars */
...props ...props
} = this.props; } = this.props;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment