Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /