From 83574ce29de0a151b46fdd2be36f36b214e31d4b Mon Sep 17 00:00:00 2001 From: AppScoreOli Date: Sat, 11 May 2024 19:20:40 +1000 Subject: [PATCH] Format and lint --- lib/components/data/cpu.jsx | 24 ++++++++++++++++-------- lib/settings.js | 2 +- lib/utils.js | 10 +++++----- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/lib/components/data/cpu.jsx b/lib/components/data/cpu.jsx index 33a366ef..c1e776d6 100644 --- a/lib/components/data/cpu.jsx +++ b/lib/components/data/cpu.jsx @@ -19,7 +19,8 @@ export const Widget = React.memo(() => { const { displayIndex, settings } = useSimpleBarContext(); const { widgets, cpuWidgetOptions } = settings; const { cpuWidget } = widgets; - const { refreshFrequency, showOnDisplay, displayAsGraph, cpuMonitorApp } = cpuWidgetOptions; + const { refreshFrequency, showOnDisplay, displayAsGraph, cpuMonitorApp } = + cpuWidgetOptions; const visible = Utils.isVisibleOnDisplay(displayIndex, showOnDisplay) && cpuWidget; @@ -65,14 +66,21 @@ export const Widget = React.memo(() => { const { usage } = state; - const onClick = cpuMonitorApp === "None" ? undefined : (e) => { - Utils.clickEffect(e); - openCpuUsageApp(cpuMonitorApp); - }; + const onClick = + cpuMonitorApp === "None" + ? undefined + : (e) => { + Utils.clickEffect(e); + openCpuUsageApp(cpuMonitorApp); + }; if (displayAsGraph) { return ( - +