From 2bad08c7f5beac990404d1bc575739d4af354f4b Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Tue, 9 Apr 2024 10:28:03 +0200 Subject: [PATCH] refactor(insights): remove unused chart property --- .../insights/components/LineChart/LineChartComponent.tsx | 3 --- .../insights/components/LineChart/createChartOptions.ts | 1 - .../componentsChart/FlagsProjectChart/FlagsProjectChart.tsx | 1 - .../MetricsSummaryChart/MetricsSummaryChart.tsx | 1 - .../componentsChart/ProjectHealthChart/ProjectHealthChart.tsx | 1 - .../TimeToProductionChart/TimeToProductionChart.tsx | 1 - .../UsersPerProjectChart/UsersPerProjectChart.tsx | 1 - 7 files changed, 9 deletions(-) diff --git a/frontend/src/component/insights/components/LineChart/LineChartComponent.tsx b/frontend/src/component/insights/components/LineChart/LineChartComponent.tsx index 0fe5f8aef24b..5576708e78f6 100644 --- a/frontend/src/component/insights/components/LineChart/LineChartComponent.tsx +++ b/frontend/src/component/insights/components/LineChart/LineChartComponent.tsx @@ -85,7 +85,6 @@ const LineChartComponent: VFC<{ data: ChartData<'line', unknown>; aspectRatio?: number; cover?: ReactNode; - isLocalTooltip?: boolean; overrideOptions?: ChartOptions<'line'>; TooltipComponent?: ({ tooltip, @@ -94,7 +93,6 @@ const LineChartComponent: VFC<{ data, aspectRatio = 2.5, cover, - isLocalTooltip, overrideOptions, TooltipComponent, }) => { @@ -109,7 +107,6 @@ const LineChartComponent: VFC<{ locationSettings, setTooltip, Boolean(cover), - isLocalTooltip, ), ...overrideOptions, }), diff --git a/frontend/src/component/insights/components/LineChart/createChartOptions.ts b/frontend/src/component/insights/components/LineChart/createChartOptions.ts index e4e101a644a4..6cc51ce03301 100644 --- a/frontend/src/component/insights/components/LineChart/createChartOptions.ts +++ b/frontend/src/component/insights/components/LineChart/createChartOptions.ts @@ -9,7 +9,6 @@ export const createOptions = ( locationSettings: ILocationSettings, setTooltip: React.Dispatch>, isPlaceholder?: boolean, - localTooltip?: boolean, ) => ({ responsive: true, diff --git a/frontend/src/component/insights/componentsChart/FlagsProjectChart/FlagsProjectChart.tsx b/frontend/src/component/insights/componentsChart/FlagsProjectChart/FlagsProjectChart.tsx index 6b8564be2ace..2d596cf0c103 100644 --- a/frontend/src/component/insights/componentsChart/FlagsProjectChart/FlagsProjectChart.tsx +++ b/frontend/src/component/insights/componentsChart/FlagsProjectChart/FlagsProjectChart.tsx @@ -31,7 +31,6 @@ export const FlagsProjectChart: VFC = ({ return ( = ({ return ( = ({ = ({ return ( = ({ return (