File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ function bsStyleFor(propName, error) {
3535class CommentForm extends BaseComponent {
3636 static propTypes = {
3737 isSaving : PropTypes . bool . isRequired ,
38- actions : PropTypes . objectOf . isRequired ,
38+ actions : PropTypes . oneOfType ( [ PropTypes . object ] ) . isRequired ,
3939 error : PropTypes . string ,
40- cssTransitionGroupClassNames : PropTypes . objectOf . isRequired ,
40+ cssTransitionGroupClassNames : PropTypes . oneOfType ( [ PropTypes . object ] ) . isRequired ,
4141 intl : intlShape . isRequired ,
4242 } ;
4343
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import Comment from './Comment/Comment.jsx';
1111export const commentPropTypes = {
1212 $$comments : PropTypes . instanceOf ( Immutable . List ) . isRequired ,
1313 error : PropTypes . string ,
14- cssTransitionGroupClassNames : PropTypes . objectOf . isRequired ,
14+ cssTransitionGroupClassNames : PropTypes . oneOfType ( [ PropTypes . object ] ) . isRequired ,
1515} ;
1616
1717export default class CommentList extends BaseComponent {
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ import css from './CommentScreen.scss';
88
99export default class CommentScreen extends BaseComponent {
1010 static propTypes = {
11- actions : PropTypes . objectOf . isRequired ,
12- data : PropTypes . objectOf . isRequired ,
13- locationState : PropTypes . objectOf ,
11+ actions : PropTypes . oneOfType ( [ PropTypes . object ] ) . isRequired ,
12+ data : PropTypes . oneOfType ( [ PropTypes . object ] ) . isRequired ,
13+ locationState : PropTypes . oneOfType ( [ PropTypes . object ] ) ,
1414 } ;
1515
1616 renderNotification ( ) {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function select(state) {
2222class NonRouterCommentsContainer extends BaseComponent {
2323 static propTypes = {
2424 dispatch : PropTypes . func . isRequired ,
25- data : PropTypes . objectOf . isRequired ,
25+ data : PropTypes . oneOfType ( [ PropTypes . object ] ) . isRequired ,
2626 } ;
2727
2828 render ( ) {
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ function select(state) {
2121class RouterCommentsContainer extends BaseComponent {
2222 static propTypes = {
2323 dispatch : PropTypes . func . isRequired ,
24- data : PropTypes . objectOf . isRequired ,
24+ data : PropTypes . oneOfType ( [ PropTypes . object ] ) . isRequired ,
2525 location : PropTypes . shape ( {
26- state : PropTypes . objectOf ,
26+ state : PropTypes . oneOfType ( [ PropTypes . object ] ) ,
2727 } ) . isRequired ,
2828 } ;
2929
Original file line number Diff line number Diff line change @@ -37,5 +37,5 @@ export default class Layout extends Component {
3737}
3838
3939Layout . propTypes = {
40- children : PropTypes . objectOf ( PropTypes . object ) . isRequired ,
40+ children : PropTypes . oneOfType ( [ PropTypes . object ] ) . isRequired ,
4141} ;
You can’t perform that action at this time.
0 commit comments