From c84a675c07fd1997588794a26bf41c04f23c121e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 10 Mar 2021 14:46:15 +0100 Subject: getting rid of basically all instances of bindActionCreators and mapDispatchToActions. hopefully never have to use these functions again --- .../views/editor/align/components/timeline/playCursor.component.js | 7 +------ .../views/editor/align/components/timeline/waveform.component.js | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'animism-align/frontend/app/views/editor/align/components/timeline') diff --git a/animism-align/frontend/app/views/editor/align/components/timeline/playCursor.component.js b/animism-align/frontend/app/views/editor/align/components/timeline/playCursor.component.js index 854c43b..80da31f 100644 --- a/animism-align/frontend/app/views/editor/align/components/timeline/playCursor.component.js +++ b/animism-align/frontend/app/views/editor/align/components/timeline/playCursor.component.js @@ -1,6 +1,5 @@ import React, { Component } from 'react' // import { Link } from 'react-router-dom' -import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { ZOOM_STEPS } from 'app/constants' @@ -29,8 +28,4 @@ const mapStateToProps = state => ({ audio: state.audio, }) -const mapDispatchToProps = dispatch => ({ - // alignActions: bindActionCreators({ ...alignActions }, dispatch), -}) - -export default connect(mapStateToProps, mapDispatchToProps)(PlayCursor) +export default connect(mapStateToProps)(PlayCursor) diff --git a/animism-align/frontend/app/views/editor/align/components/timeline/waveform.component.js b/animism-align/frontend/app/views/editor/align/components/timeline/waveform.component.js index 59a2c13..e628a27 100644 --- a/animism-align/frontend/app/views/editor/align/components/timeline/waveform.component.js +++ b/animism-align/frontend/app/views/editor/align/components/timeline/waveform.component.js @@ -1,6 +1,5 @@ import React, { Component } from 'react' // import { Link } from 'react-router-dom' -// import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import actions from 'app/actions' @@ -98,8 +97,4 @@ const mapStateToProps = state => ({ peaks: state.site.peaks, }) -const mapDispatchToProps = dispatch => ({ - // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), -}) - -export default connect(mapStateToProps, mapDispatchToProps)(Waveform) +export default connect(mapStateToProps)(Waveform) -- cgit v1.2.3-70-g09d2