LogMonitor: remove calls to findDOMNode (deprecated api)

This commit is contained in:
Richard Keil 2015-09-16 21:20:34 +02:00
parent a8e06e9975
commit a5b5bc487e

View File

@ -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;
}