mirror of https://github.com/kern/filepizza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
354 B
JavaScript
22 lines
354 B
JavaScript
import React from 'react'
|
|
|
|
export default class DownloadButton extends React.Component {
|
|
|
|
onClick(e) {
|
|
this.props.onClick(e)
|
|
}
|
|
|
|
render() {
|
|
return <button
|
|
className="download-button"
|
|
onClick={this.onClick.bind(this)}>
|
|
Download
|
|
</button>
|
|
}
|
|
|
|
}
|
|
|
|
DownloadButton.propTypes = {
|
|
onClick: React.PropTypes.func.isRequired
|
|
}
|