Use prop-types package instead of React.PropTypes.

This commit is contained in:
Daniel Ternyak 2017-04-14 01:21:22 -05:00
parent 024c14610b
commit bfbd3b2319
1 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,13 @@
import React, {Component} from 'react' import React, {Component} from 'react'
import {Provider} from 'react-redux' import {Provider} from 'react-redux'
import {Router} from 'react-router' import {Router} from 'react-router'
import PropTypes from 'prop-types';
export default class Root extends Component { export default class Root extends Component {
static propTypes = { static propTypes = {
store: React.PropTypes.object, store: PropTypes.object,
history: React.PropTypes.object, history: PropTypes.object,
routes: React.PropTypes.func routes: PropTypes.func
}; };
authCheck(nextState, replace, callback) { authCheck(nextState, replace, callback) {