Skip to content

Commit 4af57cc

Browse files
committed
Fix PropType.object
1 parent 7144b23 commit 4af57cc

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

client/app/bundles/comments/components/CommentBox/CommentForm/CommentForm.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ function bsStyleFor(propName, error) {
3535
class 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

client/app/bundles/comments/components/CommentBox/CommentList/CommentList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Comment from './Comment/Comment.jsx';
1111
export 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

1717
export default class CommentList extends BaseComponent {

client/app/bundles/comments/components/CommentScreen/CommentScreen.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import css from './CommentScreen.scss';
88

99
export 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() {

client/app/bundles/comments/containers/NonRouterCommentsContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function select(state) {
2222
class 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() {

client/app/bundles/comments/containers/RouterCommentsContainer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ function select(state) {
2121
class 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

client/app/bundles/comments/layout/Layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ export default class Layout extends Component {
3737
}
3838

3939
Layout.propTypes = {
40-
children: PropTypes.objectOf(PropTypes.object).isRequired,
40+
children: PropTypes.oneOfType([PropTypes.object]).isRequired,
4141
};

0 commit comments

Comments
 (0)