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