remove unused code

This commit is contained in:
Baltazar Gomez 2018-02-25 14:53:17 -07:00 committed by GitHub
parent 1c011b1427
commit 43a60fd19a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ class FileExporter extends React.PureComponent {
data: PropTypes.array,
type: PropTypes.oneOf(['json', 'csv']),
title: PropTypes.string,
label: PropTypes.string,
defaultPath: PropTypes.string,
onFileCreated: PropTypes.func,
};
@ -24,12 +25,6 @@ class FileExporter extends React.PureComponent {
super(props);
}
componentWillMount() {
this.setState({
path: this.props.initPath || null,
});
}
handleFileCreation(filename, data) {
const { onFileCreated } = this.props;
fs.writeFile(filename, data, err => {