mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
21 lines
405 B
JavaScript
21 lines
405 B
JavaScript
import React from 'react';
|
|
import {connect} from 'react-redux';
|
|
|
|
|
|
class Eject extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.handleClick = this.handleClick.bind(this);
|
|
}
|
|
handleClick() {
|
|
this.props.dispatch({type: 'OPEN_FILE_DIALOG'});
|
|
}
|
|
render() {
|
|
return <div
|
|
id='eject'
|
|
onClick={this.handleClick}
|
|
/>;
|
|
}
|
|
}
|
|
|
|
module.exports = connect()(Eject);
|