Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Commit f5a02be

Browse files
authored
Merge pull request #60 from philipstanislaus/fixPropTypesWarnings
Fix PropTypes warnings, make library compatible with react 16, see issue #57
2 parents 9f3faaf + 073aec8 commit f5a02be

11 files changed

+65
-57
lines changed

demo/dist/js/bundle.js

+47-48
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"inline-style-prefixer": "^2.0.1",
7878
"lodash.sortby": "^4.7.0",
7979
"moment": "^2.14.1",
80+
"prop-types": "^15.6.0",
8081
"react-base16-styling": "^0.4.6",
8182
"react-day-picker-themeable": "^2.5.1"
8283
},

src/Autocomplete.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { PureComponent, PropTypes } from 'react';
1+
import { PureComponent } from 'react';
2+
import PropTypes from 'prop-types';
23
import * as shapes from './shapes';
34
import findMatchingTextIndex from './utils/findMatchingTextIndex';
45
import getInput from './utils/getInput';

src/Autosize.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { PureComponent, PropTypes } from 'react';
1+
import { PureComponent } from 'react';
2+
import PropTypes from 'prop-types';
23
import './utils/getComputedStyle';
34
import getInput from './utils/getInput';
45
import registerInput from './utils/registerInput';

src/Combobox.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PureComponent, PropTypes } from 'react';
1+
import React, { PureComponent } from 'react';
2+
import PropTypes from 'prop-types';
23
import Autocomplete from './Autocomplete';
34
import Dropdown from './Dropdown';
45
import Autosize from './Autosize';

src/DatePicker.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PureComponent, PropTypes, Children } from 'react';
1+
import React, { PureComponent, Children } from 'react';
2+
import PropTypes from 'prop-types';
23
import Mask from './Mask';
34
import InputPopup from './InputPopup';
45
import moment from 'moment';

src/Dropdown.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PureComponent, PropTypes } from 'react';
1+
import React, { PureComponent } from 'react';
2+
import PropTypes from 'prop-types';
23
import * as shapes from './shapes';
34
import findMatchingTextIndex from './utils/findMatchingTextIndex';
45
import * as filters from './filters';

src/DropdownOption.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PureComponent, PropTypes } from 'react';
1+
import React, { PureComponent } from 'react';
2+
import PropTypes from 'prop-types';
23
import { findDOMNode } from 'react-dom';
34

45
export default class DropdownOption extends PureComponent {

src/InputPopup.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PureComponent, PropTypes } from 'react';
1+
import React, { PureComponent } from 'react';
2+
import PropTypes from 'prop-types';
23
import renderChild from './utils/renderChild';
34

45
export default class InputPopup extends PureComponent {

src/Mask.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { PureComponent, PropTypes } from 'react';
1+
import { PureComponent } from 'react';
2+
import PropTypes from 'prop-types';
23
import applyMaskToString from './applyMaskToString';
34
import getInput from './utils/getInput';
45
import registerInput from './utils/registerInput';

src/shapes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
22
const { shape, oneOfType, string, any } = PropTypes;
33

44
export const ITEM = shape({

0 commit comments

Comments
 (0)