Skip to content

Commit d95462d

Browse files
authored
Merge pull request #21 from daltones/fix-query-proptypes
PropType for array of objects on query
2 parents f4d5854 + 5439fb5 commit d95462d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: modules/Media.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ if (__DEV__) {
4444
Media.propTypes = {
4545
query: PropTypes.oneOfType([
4646
PropTypes.string,
47-
PropTypes.object
47+
PropTypes.object,
48+
PropTypes.arrayOf(PropTypes.object.isRequired)
4849
]).isRequired,
4950
render: PropTypes.func,
5051
children: PropTypes.oneOfType([

0 commit comments

Comments
 (0)