Skip to content

Commit f18e9c7

Browse files
author
Claudéric Demers
authored
Merge pull request clauderic#183 from Hypnosphi/master
Replace React.PropTypes with prop-types package to prevent warnings
2 parents ae0dd23 + 5b0e04c commit f18e9c7

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"dependencies": {
4949
"babel-runtime": "^6.11.6",
5050
"invariant": "^2.2.1",
51-
"lodash": "^4.12.0"
51+
"lodash": "^4.12.0",
52+
"prop-types": "^15.5.6"
5253
},
5354
"peerDependencies": {
5455
"react": "^0.14.0 || ^15.0.0",

src/.stories/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import ReactDOM from 'react-dom';
34
import {storiesOf} from '@kadira/storybook';
45
import style from './Storybook.scss';

src/SortableContainer/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import {findDOMNode} from 'react-dom';
34
import invariant from 'invariant';
45

src/SortableElement/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import {findDOMNode} from 'react-dom';
34
import invariant from 'invariant';
45

0 commit comments

Comments
 (0)