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

Commit

Permalink
Merge pull request #60 from philipstanislaus/fixPropTypesWarnings
Browse files Browse the repository at this point in the history
Fix PropTypes warnings, make library compatible with react 16, see issue #57
  • Loading branch information
alexkuz authored Dec 14, 2017
2 parents 9f3faaf + 073aec8 commit f5a02be
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 57 deletions.
95 changes: 47 additions & 48 deletions demo/dist/js/bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"inline-style-prefixer": "^2.0.1",
"lodash.sortby": "^4.7.0",
"moment": "^2.14.1",
"prop-types": "^15.6.0",
"react-base16-styling": "^0.4.6",
"react-day-picker-themeable": "^2.5.1"
},
Expand Down
3 changes: 2 additions & 1 deletion src/Autocomplete.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { PureComponent, PropTypes } from 'react';
import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import * as shapes from './shapes';
import findMatchingTextIndex from './utils/findMatchingTextIndex';
import getInput from './utils/getInput';
Expand Down
3 changes: 2 additions & 1 deletion src/Autosize.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { PureComponent, PropTypes } from 'react';
import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import './utils/getComputedStyle';
import getInput from './utils/getInput';
import registerInput from './utils/registerInput';
Expand Down
3 changes: 2 additions & 1 deletion src/Combobox.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PureComponent, PropTypes } from 'react';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Autocomplete from './Autocomplete';
import Dropdown from './Dropdown';
import Autosize from './Autosize';
Expand Down
3 changes: 2 additions & 1 deletion src/DatePicker.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PureComponent, PropTypes, Children } from 'react';
import React, { PureComponent, Children } from 'react';
import PropTypes from 'prop-types';
import Mask from './Mask';
import InputPopup from './InputPopup';
import moment from 'moment';
Expand Down
3 changes: 2 additions & 1 deletion src/Dropdown.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PureComponent, PropTypes } from 'react';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import * as shapes from './shapes';
import findMatchingTextIndex from './utils/findMatchingTextIndex';
import * as filters from './filters';
Expand Down
3 changes: 2 additions & 1 deletion src/DropdownOption.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PureComponent, PropTypes } from 'react';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';

export default class DropdownOption extends PureComponent {
Expand Down
3 changes: 2 additions & 1 deletion src/InputPopup.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PureComponent, PropTypes } from 'react';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import renderChild from './utils/renderChild';

export default class InputPopup extends PureComponent {
Expand Down
3 changes: 2 additions & 1 deletion src/Mask.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { PureComponent, PropTypes } from 'react';
import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import applyMaskToString from './applyMaskToString';
import getInput from './utils/getInput';
import registerInput from './utils/registerInput';
Expand Down
2 changes: 1 addition & 1 deletion src/shapes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropTypes } from 'react';
import PropTypes from 'prop-types';
const { shape, oneOfType, string, any } = PropTypes;

export const ITEM = shape({
Expand Down

0 comments on commit f5a02be

Please sign in to comment.