mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
23 lines
442 B
JavaScript
23 lines
442 B
JavaScript
import React from 'react';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {openFileDialog} from '../actionCreators';
|
|
|
|
|
|
class Eject extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.handleClick = this.handleClick.bind(this);
|
|
}
|
|
handleClick() {
|
|
openFileDialog(this.props.winamp);
|
|
}
|
|
render() {
|
|
return <div
|
|
id='eject'
|
|
onClick={this.handleClick}
|
|
/>;
|
|
}
|
|
}
|
|
|
|
module.exports = connect()(Eject);
|