mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Fix some warnings.
This commit is contained in:
@@ -105,7 +105,7 @@ export default class Sparkline extends React.Component {
|
||||
? this.props.hoverColor
|
||||
: this.props.strokeColor;
|
||||
const strokeWidth = this.props.strokeWidth * (this.props.hovered ? HOVER_STROKE_MULTIPLY : 1);
|
||||
const strokeDasharray = hasData || `${dash}, ${dash}`;
|
||||
const strokeDasharray = hasData ? undefined : `${dash}, ${dash}`;
|
||||
const radius = this.props.circleRadius * (this.props.hovered ? HOVER_RADIUS_MULTIPLY : 1);
|
||||
const fillOpacity = this.props.hovered ? 1 : 0.6;
|
||||
const circleColor = hasData && this.props.hovered ? strokeColor : strokeColor;
|
||||
|
||||
@@ -42,7 +42,7 @@ class ViewModeSelector extends React.Component {
|
||||
<div
|
||||
className={className}
|
||||
disabled={!isEnabled}
|
||||
onClick={isEnabled && onClick}
|
||||
onClick={isEnabled ? onClick : undefined}
|
||||
title={`View ${label.toLowerCase()}`}>
|
||||
<span className={icons} style={{ fontSize: 12 }} />
|
||||
<span className="label">{label}</span>
|
||||
|
||||
Reference in New Issue
Block a user