remove type from component props

This commit is contained in:
Baltazar Gomez 2018-02-25 21:06:00 -07:00 committed by GitHub
parent 43a60fd19a
commit 5ca2e74808
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,17 +10,12 @@ const { remote } = require('electron');
class FileExporter extends React.PureComponent {
static propTypes = {
data: PropTypes.array,
type: PropTypes.oneOf(['json', 'csv']),
title: PropTypes.string,
label: PropTypes.string,
defaultPath: PropTypes.string,
onFileCreated: PropTypes.func,
};
static defaultProps = {
type: 'json',
};
constructor(props) {
super(props);
}