Fixed PropTypes warnings (#358)

This commit is contained in:
Timofey Smirnov 2017-04-25 23:09:02 +03:00 committed by Mihail Diordiev
parent df1a4ea555
commit 41abd40631
10 changed files with 21 additions and 11 deletions

View File

@ -16,7 +16,8 @@
}, },
"homepage": "https://github.com/gaearon/redux-devtools#readme", "homepage": "https://github.com/gaearon/redux-devtools#readme",
"dependencies": { "dependencies": {
"react": "^15.0.1", "prop-types": "^15.5.7",
"react": "^15.3.0",
"react-dom": "^15.0.1", "react-dom": "^15.0.1",
"react-hot-loader": "^3.0.0-beta.1", "react-hot-loader": "^3.0.0-beta.1",
"react-redux": "^4.1.0", "react-redux": "^4.1.0",

View File

@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Counter extends Component { export default class Counter extends Component {
static propTypes = { static propTypes = {

View File

@ -1,4 +1,5 @@
import React, { PropTypes, Component } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames'; import classnames from 'classnames';
import { SHOW_ALL, SHOW_MARKED, SHOW_UNMARKED } from '../constants/TodoFilters'; import { SHOW_ALL, SHOW_MARKED, SHOW_UNMARKED } from '../constants/TodoFilters';

View File

@ -1,4 +1,5 @@
import React, { PropTypes, Component } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TodoTextInput from './TodoTextInput'; import TodoTextInput from './TodoTextInput';
export default class Header extends Component { export default class Header extends Component {

View File

@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TodoItem from './TodoItem'; import TodoItem from './TodoItem';
import Footer from './Footer'; import Footer from './Footer';
import { SHOW_ALL, SHOW_MARKED, SHOW_UNMARKED } from '../constants/TodoFilters'; import { SHOW_ALL, SHOW_MARKED, SHOW_UNMARKED } from '../constants/TodoFilters';

View File

@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames'; import classnames from 'classnames';
import TodoTextInput from './TodoTextInput'; import TodoTextInput from './TodoTextInput';

View File

@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames'; import classnames from 'classnames';
export default class TodoTextInput extends Component { export default class TodoTextInput extends Component {

View File

@ -29,7 +29,8 @@
"homepage": "https://github.com/gaearon/redux-devtools#readme", "homepage": "https://github.com/gaearon/redux-devtools#readme",
"dependencies": { "dependencies": {
"classnames": "^2.1.2", "classnames": "^2.1.2",
"react": "^15.0.1", "prop-types": "^15.5.7",
"react": "^15.3.0",
"react-dom": "^15.0.1", "react-dom": "^15.0.1",
"react-hot-loader": "^3.0.0-beta.1", "react-hot-loader": "^3.0.0-beta.1",
"react-redux": "^4.1.0", "react-redux": "^4.1.0",

View File

@ -51,7 +51,7 @@
"jsdom": "^6.5.1", "jsdom": "^6.5.1",
"mocha": "^2.2.5", "mocha": "^2.2.5",
"mocha-jsdom": "^1.0.0", "mocha-jsdom": "^1.0.0",
"react": "^0.14.0", "react": "^0.14.9",
"react-addons-test-utils": "^0.14.0", "react-addons-test-utils": "^0.14.0",
"react-dom": "^0.14.0", "react-dom": "^0.14.0",
"react-redux": "^4.0.0", "react-redux": "^4.0.0",
@ -60,11 +60,12 @@
"webpack": "^1.11.0" "webpack": "^1.11.0"
}, },
"peerDependencies": { "peerDependencies": {
"react": "^0.14.0 || ^15.0.0", "react": "^0.14.9 || ^15.3.0",
"react-redux": "^4.0.0 || ^5.0.0", "react-redux": "^4.0.0 || ^5.0.0",
"redux": "^3.5.2" "redux": "^3.5.2"
}, },
"dependencies": { "dependencies": {
"prop-types": "^15.5.7",
"lodash": "^4.2.0", "lodash": "^4.2.0",
"redux-devtools-instrument": "^1.0.1" "redux-devtools-instrument": "^1.0.1"
} }

View File

@ -1,4 +1,5 @@
import React, { Children, Component, PropTypes } from 'react'; import React, { Children, Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import instrument from 'redux-devtools-instrument'; import instrument from 'redux-devtools-instrument';