From 91c47c22f2c71c524fd665f19186bb014c94ab31 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 4 Jun 2018 04:50:27 +0200 Subject: audioplayer you can toggle --- app/client/common/audioPlayer.component.js | 38 ------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 app/client/common/audioPlayer.component.js (limited to 'app/client/common/audioPlayer.component.js') 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 ( -
- {this.props.title} - -
- ) - } -} - -const mapStateToProps = state => ({ - player: state.audioPlayer, -}) - -const mapDispatchToProps = (dispatch, ownProps) => ({ -}) - -export default connect(mapStateToProps, mapDispatchToProps)(AudioPlayer) -- cgit v1.2.3-70-g09d2