mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Applied autofix for object-curly-newline rule.
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user