Skip to content

Commit bf2e222

Browse files
authored
Merge pull request #6 from emision/master
Change "PropTypes" to external, instead deprecated in React
2 parents d69f9c1 + ec922fe commit bf2e222

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
2-
build
32
log
3+
build
44
*.log

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)