Skip to content

Commit dfa78a7

Browse files
committed
Change "PropTypes" to external, instead deprecated in React
1 parent d69f9c1 commit dfa78a7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/SocketProvider.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

34
class SocketProvider extends Component {
45
static propTypes = {

lib/socket-connect.js

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

34
function socketConnect(Target) {
45
function SocketConnect(props, context) {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
3232
"babel-plugin-transform-es2015-spread": "6.6.5",
3333
"babel-plugin-transform-react-constant-elements": "6.5.0",
34-
"babel-plugin-transform-react-inline-elements": "6.6.5"
34+
"babel-plugin-transform-react-inline-elements": "6.6.5",
35+
"prop-types": "^15.5.8"
3536
},
3637
"peerDependencies": {
3738
"socket.io-client": "^1.4.5"

0 commit comments

Comments
 (0)