mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-01 14:03:52 +03:00
LogMonitor: remove calls to findDOMNode (deprecated api)
This commit is contained in:
parent
a8e06e9975
commit
a5b5bc487e
|
@ -1,4 +1,4 @@
|
||||||
import React, { PropTypes, findDOMNode, Component } from 'react';
|
import React, { PropTypes, Component } from 'react';
|
||||||
import LogMonitorEntry from './LogMonitorEntry';
|
import LogMonitorEntry from './LogMonitorEntry';
|
||||||
import LogMonitorButton from './LogMonitorButton';
|
import LogMonitorButton from './LogMonitorButton';
|
||||||
import * as themes from './themes';
|
import * as themes from './themes';
|
||||||
|
@ -65,7 +65,7 @@ export default class LogMonitor extends Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
const node = findDOMNode(this.refs.elements);
|
const node = this.refs.elements;
|
||||||
if (!node) {
|
if (!node) {
|
||||||
this.scrollDown = true;
|
this.scrollDown = true;
|
||||||
} else if (
|
} else if (
|
||||||
|
@ -82,7 +82,7 @@ export default class LogMonitor extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
const node = findDOMNode(this.refs.elements);
|
const node = this.refs.elements;
|
||||||
if (!node) {
|
if (!node) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user