Skip to content

Commit f7f2b00

Browse files
koox00zalmoxisus
authored andcommitted
Fix PropTypes deprecation warnings react >= 15.5.0 (#65)
1 parent ca8d227 commit f7f2b00

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
},
5858
"dependencies": {
5959
"lodash.debounce": "^4.0.4",
60+
"prop-types": "^15.0.0",
6061
"react-json-tree": "^0.10.0",
6162
"react-pure-render": "^1.0.2",
6263
"redux-devtools-themes": "^1.0.0"

src/LogMonitor.js

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

src/LogMonitorButtonBar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes, Component } from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import shouldPureComponentUpdate from 'react-pure-render/function';
34
import { ActionCreators } from 'redux-devtools';
45
import LogMonitorButton from './LogMonitorButton';

src/LogMonitorEntry.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes, Component } from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import JSONTree from 'react-json-tree';
34
import LogMonitorEntryAction from './LogMonitorEntryAction';
45
import shouldPureComponentUpdate from 'react-pure-render/function';

src/LogMonitorEntryList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes, Component } from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import LogMonitorEntry from './LogMonitorEntry';
34
import shouldPureComponentUpdate from 'react-pure-render/function';
45

0 commit comments

Comments
 (0)