Skip to content

Commit 76531f7

Browse files
edorivaimjackson
authored andcommitted
Allow for specifying defaultMatches
As hinted by @mjackson in #46 (comment)
1 parent c13aa5c commit 76531f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/Media.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ class Media extends React.Component {
1818
])
1919
}
2020

21+
static defaultProps = {
22+
defaultMatches: true
23+
}
24+
2125
state = {
22-
matches: true
26+
matches: this.props.defaultMatches
2327
}
2428

2529
updateMatches = () =>

0 commit comments

Comments
 (0)