From c776932643398edf56963859e861a01faed816dd Mon Sep 17 00:00:00 2001 From: Brian Gann Date: Sat, 5 Aug 2023 02:40:19 -0400 Subject: [PATCH] cleanup --- src/components/Gauge.tsx | 10 +++++----- src/components/types.ts | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Gauge.tsx b/src/components/Gauge.tsx index a387bd0..1d755bd 100644 --- a/src/components/Gauge.tsx +++ b/src/components/Gauge.tsx @@ -401,7 +401,7 @@ export const Gauge: React.FC = (options) => { max: nextThresholdValue, color: sorted[0].color, }; - } + }; // TODO: handle returning undefined when there is no upper band const getUpperBand = (sorted: Threshold[]) => { @@ -412,7 +412,7 @@ export const Gauge: React.FC = (options) => { max: options.maxValue, color: sorted[index].color, }; - } + }; // TODO: handle returning undefined when there are no inner bands const getInnerBands = (sorted: Threshold[], lower: ExpandedThresholdBand, upper: ExpandedThresholdBand) => { @@ -426,12 +426,12 @@ export const Gauge: React.FC = (options) => { }); } return innerBands; - } + }; const expandThresholdBands = () => { // check if there are no thresholds if (options.thresholds && options.thresholds!.steps.length === 0) { - return ({ lowerBand: undefined, innerBands: undefined, upperBand: undefined }) + return ({ lowerBand: undefined, innerBands: undefined, upperBand: undefined }); } const sorted = sortThresholds(options.thresholds!.steps); // get the lower band @@ -441,7 +441,7 @@ export const Gauge: React.FC = (options) => { // get the inner bands const innerBands = getInnerBands(sorted, lowerBand, upperBand); return ({ lowerBand, innerBands, upperBand }); - } + }; const createThresholdBands = () => { // do not show thresholds if this is false diff --git a/src/components/types.ts b/src/components/types.ts index 2548d3f..0b4f117 100644 --- a/src/components/types.ts +++ b/src/components/types.ts @@ -197,7 +197,7 @@ export const Markers: MarkerType[] = [ export interface ExpandedThresholdBand { index: number; - min: number, - max: number, - color: string + min: number; + max: number; + color: string; }