Skip to content

Commit

Permalink
Allow for specifying defaultMatches
Browse files Browse the repository at this point in the history
As hinted by @mjackson in #46 (comment)
  • Loading branch information
edorivai authored and mjackson committed Jul 11, 2017
1 parent c13aa5c commit 76531f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/Media.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ class Media extends React.Component {
])
}

static defaultProps = {
defaultMatches: true
}

state = {
matches: true
matches: this.props.defaultMatches
}

updateMatches = () =>
Expand Down

0 comments on commit 76531f7

Please sign in to comment.