mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-28 20:43:56 +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 LogMonitorButton from './LogMonitorButton';
|
||||
import * as themes from './themes';
|
||||
|
@ -65,7 +65,7 @@ export default class LogMonitor extends Component {
|
|||
};
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const node = findDOMNode(this.refs.elements);
|
||||
const node = this.refs.elements;
|
||||
if (!node) {
|
||||
this.scrollDown = true;
|
||||
} else if (
|
||||
|
@ -82,7 +82,7 @@ export default class LogMonitor extends Component {
|
|||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
const node = findDOMNode(this.refs.elements);
|
||||
const node = this.refs.elements;
|
||||
if (!node) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user