Skip to content

Commit f376d87

Browse files
authored
Merge pull request #31 from bvaughn/PropTypes-to-prop-types
Added prop-types dependency and updated imports
2 parents 3b175af + 6867611 commit f376d87

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

modules/Broadcast.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import invariant from 'invariant'
2-
import React, { PropTypes } from 'react'
2+
import React from 'react'
3+
import PropTypes from 'prop-types'
34

45
const createBroadcast = (initialState) => {
56
let listeners = []

modules/Subscriber.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import invariant from 'invariant'
2-
import React, { PropTypes } from 'react'
2+
import React from 'react'
3+
import PropTypes from 'prop-types'
34

45
/**
56
* A <Subscriber> pulls the value for a channel off of context.broadcasts

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"lint": "eslint modules"
2020
},
2121
"dependencies": {
22-
"invariant": "^2.2.1"
22+
"invariant": "^2.2.1",
23+
"prop-types": "^15.5.6"
2324
},
2425
"peerDependencies": {
2526
"react": "15.x"

0 commit comments

Comments
 (0)