Skip to content

Commit

Permalink
Export toQuery function directly since src folder is no longer exported
Browse files Browse the repository at this point in the history
  • Loading branch information
morganmccrory committed Oct 16, 2017
1 parent fb23be4 commit f5d9b8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/react-responsive.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import hyphenate from 'hyphenate-style-name'
import mediaQuery from './mediaQuery'
import toQuery from './toQuery'


const defaultTypes = {
component: PropTypes.node,
query: PropTypes.string,
Expand All @@ -24,7 +23,7 @@ function omit(object, keys) {
return newObject
}

export default class MediaQuery extends React.Component {
class MediaQuery extends React.Component {
static displayName = 'MediaQuery'
static defaultProps = {
values: {}
Expand Down Expand Up @@ -134,3 +133,8 @@ export default class MediaQuery extends React.Component {
}
}
}

export {
MediaQuery as default,
toQuery
};

0 comments on commit f5d9b8b

Please sign in to comment.