diff --git a/web/src/components/ui/charts/BusterChart.tsx b/web/src/components/ui/charts/BusterChart.tsx index aef9b40f1..3137549a1 100644 --- a/web/src/components/ui/charts/BusterChart.tsx +++ b/web/src/components/ui/charts/BusterChart.tsx @@ -1,9 +1,9 @@ 'use client'; -import React, { useMemo, useState } from 'react'; +import React, { useMemo } from 'react'; import isEmpty from 'lodash/isEmpty'; import { doesChartHaveValidAxis } from './helpers'; -import { useMemoizedFn, useMount } from '@/hooks'; +import { useMemoizedFn } from '@/hooks'; import { NoChartData, PreparingYourRequestLoader diff --git a/web/src/components/ui/charts/BusterChartComponent.tsx b/web/src/components/ui/charts/BusterChartComponent.tsx index e7391f82e..170b5d05c 100644 --- a/web/src/components/ui/charts/BusterChartComponent.tsx +++ b/web/src/components/ui/charts/BusterChartComponent.tsx @@ -1,5 +1,5 @@ import React, { useMemo } from 'react'; -import { +import type { BusterChartComponentProps, BusterChartRenderComponentProps } from './interfaces/chartComponentInterfaces'; diff --git a/web/src/components/ui/charts/BusterChartJS/BusterChartJSComponent.tsx b/web/src/components/ui/charts/BusterChartJS/BusterChartJSComponent.tsx index 7061bd78b..ca9ac82e4 100644 --- a/web/src/components/ui/charts/BusterChartJS/BusterChartJSComponent.tsx +++ b/web/src/components/ui/charts/BusterChartJS/BusterChartJSComponent.tsx @@ -232,9 +232,7 @@ const ChartMountedWrapper = ({ children }: { children: React.ReactNode }) => { }); if (!isMounted) { - return ( -
- ); + return ; } return children; diff --git a/web/src/controllers/MetricController/MetricViewChart/MetricEditController/MetricStylingApp/StylingAppColors/StylingAppColors.tsx b/web/src/controllers/MetricController/MetricViewChart/MetricEditController/MetricStylingApp/StylingAppColors/StylingAppColors.tsx index 71126bd85..f463d795f 100644 --- a/web/src/controllers/MetricController/MetricViewChart/MetricEditController/MetricStylingApp/StylingAppColors/StylingAppColors.tsx +++ b/web/src/controllers/MetricController/MetricViewChart/MetricEditController/MetricStylingApp/StylingAppColors/StylingAppColors.tsx @@ -24,9 +24,9 @@ export const StylingAppColors: React.FC<{ return (