remove type from component props
This commit is contained in:
parent
43a60fd19a
commit
5ca2e74808
1 changed files with 0 additions and 5 deletions
|
@ -10,17 +10,12 @@ const { remote } = require('electron');
|
||||||
class FileExporter extends React.PureComponent {
|
class FileExporter extends React.PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
data: PropTypes.array,
|
data: PropTypes.array,
|
||||||
type: PropTypes.oneOf(['json', 'csv']),
|
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
label: PropTypes.string,
|
label: PropTypes.string,
|
||||||
defaultPath: PropTypes.string,
|
defaultPath: PropTypes.string,
|
||||||
onFileCreated: PropTypes.func,
|
onFileCreated: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
||||||
static defaultProps = {
|
|
||||||
type: 'json',
|
|
||||||
};
|
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue