summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/editor/align/components/timeline
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-10 14:46:15 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-10 14:46:15 +0100
commitc84a675c07fd1997588794a26bf41c04f23c121e (patch)
treed38758ab67c1d851069d6b9fd4b7da9934e3fb87 /animism-align/frontend/app/views/editor/align/components/timeline
parente86e0a2f710d28c26a7457ab3fd35c88d2f937b1 (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/timeline')
-rw-r--r--animism-align/frontend/app/views/editor/align/components/timeline/playCursor.component.js7
-rw-r--r--animism-align/frontend/app/views/editor/align/components/timeline/waveform.component.js7
2 files changed, 2 insertions, 12 deletions
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)