We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7273d52 commit 2e175f8Copy full SHA for 2e175f8
src/Legend.tsx
@@ -4,6 +4,7 @@ import { LegendItem } from "./LegendItem";
4
import { MonitorSettings, PluggableMonitor } from "./utils";
5
import { Scrollbars } from "react-custom-scrollbars";
6
import Switch from "react-switch";
7
+import classNames from "classnames";
8
9
export function Legend({
10
chartRef,
@@ -158,7 +159,7 @@ export function Legend({
158
159
</label>
160
<button
161
disabled={!config?.monitorUISettings?.connected}
- className={`pause-button ${pause ? "paused" : ""}`}
162
+ className={classNames("pause-button", { paused: pause })}
163
title={
164
config?.monitorUISettings?.connected
165
? undefined
0 commit comments