Applied autofix for object-curly-newline rule.

This commit is contained in:
Filip Barl
2017-10-17 17:39:02 +02:00
parent d9a8afe81d
commit 2fcbdb7e16
45 changed files with 209 additions and 78 deletions

View File

@@ -3,7 +3,9 @@ import { sortBy } from 'lodash';
import NodeDetailsControlButton from './node-details-control-button';
export default function NodeDetailsControls({controls, error, nodeId, pending}) {
export default function NodeDetailsControls({
controls, error, nodeId, pending
}) {
let spinnerClassName = 'fa fa-circle-o-notch fa-spin';
if (pending) {
spinnerClassName += ' node-details-controls-spinner';

View File

@@ -63,7 +63,9 @@ class NodeDetailsHealthLinkItem extends React.Component {
}
render() {
const { id, url, pausedAt, ...props } = this.props;
const {
id, url, pausedAt, ...props
} = this.props;
const metricColor = getMetricColor(id);
const labelColor = this.state.hovered && !props.valueEmpty && darkenColor(metricColor);

View File

@@ -17,7 +17,9 @@ class NodeDetailsTableNodeMetricLink extends React.Component {
}
render() {
const { url, style, value, valueEmpty } = this.props;
const {
url, style, value, valueEmpty
} = this.props;
return (
<td

View File

@@ -154,7 +154,9 @@ export default class NodeDetailsTableRow extends React.Component {
}
render() {
const { node, nodeIdKey, topologyId, columns, onClick, colStyles, timestamp } = this.props;
const {
node, nodeIdKey, topologyId, columns, onClick, colStyles, timestamp
} = this.props;
const [firstColumnStyle, ...columnStyles] = colStyles;
const values = renderValues(node, columns, columnStyles, timestamp, topologyId);
const nodeId = node[nodeIdKey];

View File

@@ -202,8 +202,10 @@ class NodeDetailsTable extends React.Component {
}
render() {
const { nodeIdKey, columns, topologyId, onClickRow,
onMouseEnter, onMouseLeave, timestamp } = this.props;
const {
nodeIdKey, columns, topologyId, onClickRow,
onMouseEnter, onMouseLeave, timestamp
} = this.props;
const sortedBy = this.state.sortedBy || getDefaultSortedBy(columns, this.props.nodes);
const sortedByHeader = this.getColumnHeaders().find(h => h.id === sortedBy);