remove unused code
This commit is contained in:
parent
1c011b1427
commit
43a60fd19a
1 changed files with 1 additions and 6 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue