Use prop-types package instead of React.PropTypes.
This commit is contained in:
parent
024c14610b
commit
bfbd3b2319
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue