Skip to content

Commit

Permalink
fix: #72 prop-types
Browse files Browse the repository at this point in the history
  • Loading branch information
foxhound87 committed Apr 28, 2017
1 parent ba93acd commit 123f933
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 214 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
}
},
"dependencies": {
"match-media-mock": "0.1.0"
"match-media-mock": "0.1.0",
"prop-types": "^15.5.8"
},
"peerDependencies": {
"mobx": "^2.5.0 || ^3.0.0",
Expand All @@ -73,7 +74,7 @@
"codecov": "1.0.1",
"commitizen": "2.9.5",
"cz-conventional-changelog": "1.2.0",
"enzyme": "2.7.0",
"enzyme": "^2.8.2",
"eslint": "3.13.1",
"eslint-config-airbnb": "14.0.0",
"eslint-plugin-import": "2.2.0",
Expand All @@ -85,9 +86,9 @@
"mocha": "3.2.0",
"npm-run-all": "4.0.1",
"nyc": "10.1.2",
"react": "15.4.2",
"react-addons-test-utils": "15.4.2",
"react-dom": "15.4.2",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4",
"semantic-release": "^6.3.2",
"webpack": "1.14.0"
}
Expand Down
5 changes: 3 additions & 2 deletions src/MatchMediaProvider.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { toJS, extendObservable, action, runInAction } from 'mobx';
import { matchMedia, setMatchMediaConfig } from './matchMedia';

Expand All @@ -7,8 +8,8 @@ let breakpoints;
export default class MatchMediaProvider extends Component {

static propTypes = {
children: React.PropTypes.node,
breakpoints: React.PropTypes.object,
children: PropTypes.node,
breakpoints: PropTypes.object,
};

constructor(props) {
Expand Down
Loading

0 comments on commit 123f933

Please sign in to comment.