Skip to content

Commit

Permalink
Replace react proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmdort committed Apr 19, 2017
1 parent 7039ef6 commit 0d7ffb6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import React from 'react'
import PropTypes from 'prop-types'
import matchMedia from 'matchmedia'
import hyphenate from 'hyphenate-style-name'
import mediaQuery from './mediaQuery'
import toQuery from './toQuery'


const defaultTypes = {
component: React.PropTypes.node,
query: React.PropTypes.string,
values: React.PropTypes.shape(mediaQuery.matchers),
children: React.PropTypes.oneOfType([ React.PropTypes.node, React.PropTypes.function ])
component: ProptyPes.node,
query: ProptyPes.string,
values: ProptyPes.shape(mediaQuery.matchers),
children: ProptyPes.oneOfType([ ProptyPes.node, ProptyPes.function ])
}
const mediaKeys = Object.keys(mediaQuery.all)
const excludedQueryKeys = Object.keys(defaultTypes)
Expand Down

0 comments on commit 0d7ffb6

Please sign in to comment.