diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 04:50:27 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 04:50:27 +0200 |
| commit | 91c47c22f2c71c524fd665f19186bb014c94ab31 (patch) | |
| tree | 842c12c78c64845d6326d241e4ed84fce9adef29 /app/client/common/audioPlayer.component.js | |
| parent | 0cfde7b1c1ded067f56c681722b3c3d5f08692be (diff) | |
audioplayer you can toggle
Diffstat (limited to 'app/client/common/audioPlayer.component.js')
| -rw-r--r-- | app/client/common/audioPlayer.component.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app/client/common/audioPlayer.component.js b/app/client/common/audioPlayer.component.js deleted file mode 100644 index f10a505..0000000 --- a/app/client/common/audioPlayer.component.js +++ /dev/null @@ -1,38 +0,0 @@ -import { h, Component } from 'preact' -import { connect } from 'react-redux' -import { bindActionCreators } from 'redux' -import * as liveActions from '../live/live.actions' - -const audio = document.createElement('audio') - -class AudioPlayer extends Component { - constructor(props){ - super(props) - this.handleClick = this.handleClick.bind(this) - } - handleClick(e){ - this.props.onClick && this.props.onClick() - } - render() { - const { player={} } = this.props - return ( - <div className='audioPlayer'> - <span>{this.props.title}</span> - <button - onClick={this.handleClick} - > - {player.playing ? '>' : 'pause'} - </button> - </div> - ) - } -} - -const mapStateToProps = state => ({ - player: state.audioPlayer, -}) - -const mapDispatchToProps = (dispatch, ownProps) => ({ -}) - -export default connect(mapStateToProps, mapDispatchToProps)(AudioPlayer) |
