File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 29
29
},
30
30
"homepage" : " https://github.com/altjs/container" ,
31
31
"dependencies" : {
32
- "object.assign" : " ^4.0.1"
32
+ "object.assign" : " ^4.0.1" ,
33
+ "prop-types" : " ^15.5.10"
33
34
},
34
35
"devDependencies" : {
35
36
"alt" : " 0.17.4" ,
Original file line number Diff line number Diff line change 56
56
* Full docs available at http://goatslacker.github.io/alt/
57
57
*/
58
58
import React from 'react'
59
+ import PropTypes from 'prop-types' ;
59
60
import assign from 'object.assign'
60
61
61
62
const id = it => it
@@ -116,11 +117,11 @@ const getStateFromStores = (props) => {
116
117
// what about propTypes?
117
118
class AltContainer extends React . Component {
118
119
static contextTypes = {
119
- flux : React . PropTypes . object ,
120
+ flux : PropTypes . object ,
120
121
}
121
122
122
123
static childContextTypes = {
123
- flux : React . PropTypes . object ,
124
+ flux : PropTypes . object ,
124
125
}
125
126
126
127
getChildContext ( ) {
Original file line number Diff line number Diff line change 1
1
/*eslint-disable*/
2
2
import assign from 'object.assign'
3
+ import PropTypes from 'prop-types' ;
3
4
4
5
const id = it => it
5
6
@@ -23,11 +24,11 @@ const mixinContainer = (React) => {
23
24
24
25
return {
25
26
contextTypes : {
26
- flux : React . PropTypes . object
27
+ flux : PropTypes . object
27
28
} ,
28
29
29
30
childContextTypes : {
30
- flux : React . PropTypes . object
31
+ flux : PropTypes . object
31
32
} ,
32
33
33
34
getChildContext ( ) {
You can’t perform that action at this time.
0 commit comments