diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-10 14:46:15 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-10 14:46:15 +0100 |
| commit | c84a675c07fd1997588794a26bf41c04f23c121e (patch) | |
| tree | d38758ab67c1d851069d6b9fd4b7da9934e3fb87 /animism-align/frontend/app/views/editor/align/components | |
| parent | e86e0a2f710d28c26a7457ab3fd35c88d2f937b1 (diff) | |
getting rid of basically all instances of bindActionCreators and mapDispatchToActions. hopefully never have to use these functions again
Diffstat (limited to 'animism-align/frontend/app/views/editor/align/components')
6 files changed, 3 insertions, 20 deletions
diff --git a/animism-align/frontend/app/views/editor/align/components/annotations/annotation.form.js b/animism-align/frontend/app/views/editor/align/components/annotations/annotation.form.js index 7b1918a..6804cdd 100644 --- a/animism-align/frontend/app/views/editor/align/components/annotations/annotation.form.js +++ b/animism-align/frontend/app/views/editor/align/components/annotations/annotation.form.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' @@ -184,7 +183,4 @@ const mapStateToProps = state => ({ media: state.media.index, }) -const mapDispatchToProps = dispatch => ({ -}) - -export default connect(mapStateToProps, mapDispatchToProps)(AnnotationForm) +export default connect(mapStateToProps)(AnnotationForm) diff --git a/animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js b/animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js index 8e1fa43..7c76fca 100644 --- a/animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js +++ b/animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js @@ -1,5 +1,4 @@ import React, { PureComponent } from 'react' -import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import actions from 'app/actions' diff --git a/animism-align/frontend/app/views/editor/align/components/sidebar/script.component.js b/animism-align/frontend/app/views/editor/align/components/sidebar/script.component.js index 6c20dfa..833e83f 100644 --- a/animism-align/frontend/app/views/editor/align/components/sidebar/script.component.js +++ b/animism-align/frontend/app/views/editor/align/components/sidebar/script.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' diff --git a/animism-align/frontend/app/views/editor/align/components/sidebar/tableOfContents.component.js b/animism-align/frontend/app/views/editor/align/components/sidebar/tableOfContents.component.js index 34aedb5..9d8dd64 100644 --- a/animism-align/frontend/app/views/editor/align/components/sidebar/tableOfContents.component.js +++ b/animism-align/frontend/app/views/editor/align/components/sidebar/tableOfContents.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 { ROMAN_NUMERALS } from 'app/constants' 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) |
