Skip to content

Commit 973b67b

Browse files
authored
Merge pull request #8 from Nase00/switch-to-prop-types-package
Import PropTypes from prop-types package
2 parents 27396aa + 18a10f3 commit 973b67b

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

examples/counter/src/components/Counter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23

34
export default class Counter extends Component {
45
static propTypes = {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-devtools-dispatch",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Dispatch your actions manually to test if your app reacts well",
55
"main": "lib/index.js",
66
"scripts": {
@@ -36,11 +36,12 @@
3636
"webpack": "^1.11.0"
3737
},
3838
"peerDependencies": {
39-
"react": ">=0.14.0",
39+
"react": ">=0.14.9",
4040
"redux-devtools": "^3.0.0"
4141
},
4242
"dependencies": {
4343
"get-params": "^0.1.2",
44+
"prop-types": "^15.5.10",
4445
"redux-devtools-themes": "^1.0.0"
4546
}
4647
}

src/Dispatcher.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import getParams from 'get-params';
34
import * as themes from 'redux-devtools-themes';
45

0 commit comments

Comments
 (0)