From e0848ba1aa85cf6e81fc0aba074344198bb94c15 Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Tue, 21 May 2024 15:23:39 -0400 Subject: [PATCH] fix star imports --- .../main/home/app-dashboard/expanded-app/metrics/utils.ts | 2 +- .../home/cluster-dashboard/expanded-chart/SettingsSection.tsx | 2 +- .../expanded-chart/metrics/AggregatedDataLegend.tsx | 2 +- .../home/cluster-dashboard/expanded-chart/metrics/AreaChart.tsx | 1 - .../expanded-chart/metrics/MetricNormalizer.ts | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dashboard/src/legacy/main/home/app-dashboard/expanded-app/metrics/utils.ts b/dashboard/src/legacy/main/home/app-dashboard/expanded-app/metrics/utils.ts index f9b7a8fd31..107318d78b 100644 --- a/dashboard/src/legacy/main/home/app-dashboard/expanded-app/metrics/utils.ts +++ b/dashboard/src/legacy/main/home/app-dashboard/expanded-app/metrics/utils.ts @@ -1,5 +1,5 @@ import _ from "lodash"; -import * as stats from "simple-statistics"; +import stats from "simple-statistics"; import { type AvailableMetrics, diff --git a/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/SettingsSection.tsx b/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/SettingsSection.tsx index df0073b75b..6c0389463d 100644 --- a/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/SettingsSection.tsx +++ b/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/SettingsSection.tsx @@ -18,7 +18,7 @@ import { import _ from "lodash"; import { Link } from "react-router-dom"; import styled from "styled-components"; -import * as traverse from "traverse"; +import traverse from "traverse"; import useAuth from "shared/auth/useAuth"; import { Context } from "shared/Context"; diff --git a/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/AggregatedDataLegend.tsx b/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/AggregatedDataLegend.tsx index 23f85c18cf..475686906f 100644 --- a/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/AggregatedDataLegend.tsx +++ b/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/AggregatedDataLegend.tsx @@ -1,5 +1,5 @@ import React from "react"; -import * as stats from "simple-statistics"; +import stats from "simple-statistics"; import styled from "styled-components"; import chroma from "chroma-js"; import { NormalizedMetricsData } from "./types"; diff --git a/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/AreaChart.tsx b/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/AreaChart.tsx index 7beb343d08..248e2938c9 100644 --- a/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/AreaChart.tsx +++ b/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/AreaChart.tsx @@ -1,7 +1,6 @@ import _ from "lodash"; import React, { useCallback, useMemo, useRef } from "react"; import chroma from "chroma-js"; -import * as stats from "simple-statistics"; import styled from "styled-components"; import { AreaClosed, Bar, Line, LinePath } from "@visx/shape"; import { curveMonotoneX } from "@visx/curve"; diff --git a/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/MetricNormalizer.ts b/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/MetricNormalizer.ts index d49e94844b..7400c1d9f5 100644 --- a/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/MetricNormalizer.ts +++ b/dashboard/src/legacy/main/home/cluster-dashboard/expanded-chart/metrics/MetricNormalizer.ts @@ -1,5 +1,5 @@ import _ from "lodash"; -import * as stats from "simple-statistics"; +import stats from "simple-statistics"; import { type AvailableMetrics,