Skip to content

Commit 2e175f8

Browse files
using classnames
1 parent 7273d52 commit 2e175f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Legend.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { LegendItem } from "./LegendItem";
44
import { MonitorSettings, PluggableMonitor } from "./utils";
55
import { Scrollbars } from "react-custom-scrollbars";
66
import Switch from "react-switch";
7+
import classNames from "classnames";
78

89
export function Legend({
910
chartRef,
@@ -158,7 +159,7 @@ export function Legend({
158159
</label>
159160
<button
160161
disabled={!config?.monitorUISettings?.connected}
161-
className={`pause-button ${pause ? "paused" : ""}`}
162+
className={classNames("pause-button", { paused: pause })}
162163
title={
163164
config?.monitorUISettings?.connected
164165
? undefined

0 commit comments

Comments
 (0)