Skip to content

Commit 4e2914d

Browse files
authored
Merge pull request #50 from edorivai/master
Allow for specifying defaultMatches
2 parents 4da840a + f445f04 commit 4e2914d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: 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)