✈️ migrate to static properies of ES7

proptypes should not be  capital
Add unit-test to check if separator has default value
This commit is contained in:
abdennour 2017-02-17 20:24:28 +03:00
commit c5053cf334
6 changed files with 28 additions and 15 deletions

View file

@ -1,11 +1,20 @@
import React from 'react';
import {buildURI} from '../core';
import {defaultProps as CommonDefaultProps, PropTypes} from '../metaProps';
import {
defaultProps as commonDefaultProps,
propTypes as commonPropTypes} from '../metaProps';
const defaultProps = {
target: '_blank'
};
class CSVDownload extends React.Component {
static defaultProps = Object.assign(
commonDefaultProps,
defaultProps
);
static propTypes = commonPropTypes;
constructor(props) {
super(props);
this.state={};
@ -31,10 +40,4 @@ class CSVDownload extends React.Component {
}
}
CSVDownload.defaultProps = Object.assign(
CommonDefaultProps,
defaultProps
);
CSVDownload.PropTypes = PropTypes;
export default CSVDownload;