1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

refactor(insights): remove unused chart property (#6806)

This commit is contained in:
Tymoteusz Czech 2024-04-09 12:11:53 +02:00 committed by GitHub
parent 5a5d909137
commit 2b3516dff1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 0 additions and 9 deletions

View File

@ -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,
}),

View File

@ -9,7 +9,6 @@ export const createOptions = (
locationSettings: ILocationSettings,
setTooltip: React.Dispatch<React.SetStateAction<TooltipState | null>>,
isPlaceholder?: boolean,
localTooltip?: boolean,
) =>
({
responsive: true,

View File

@ -31,7 +31,6 @@ export const FlagsProjectChart: VFC<IFlagsProjectChartProps> = ({
return (
<LineChart
data={notEnoughData ? placeholderData : data}
isLocalTooltip
overrideOptions={{
parsing: {
yAxisKey: 'total',

View File

@ -63,7 +63,6 @@ export const MetricsSummaryChart: VFC<IMetricsSummaryChartProps> = ({
return (
<LineChart
data={notEnoughData ? placeholderData : data}
isLocalTooltip
TooltipComponent={MetricsSummaryTooltip}
overrideOptions={
notEnoughData

View File

@ -93,7 +93,6 @@ export const ProjectHealthChart: VFC<IProjectHealthChartProps> = ({
<LineChart
key={isAggregate ? 'aggregate' : 'project'}
data={data}
isLocalTooltip
TooltipComponent={isAggregate ? undefined : HealthTooltip}
overrideOptions={
notEnoughData

View File

@ -63,7 +63,6 @@ export const TimeToProductionChart: VFC<ITimeToProductionChartProps> = ({
return (
<LineChart
data={notEnoughData ? placeholderData : data}
isLocalTooltip
TooltipComponent={TimeToProductionTooltip}
overrideOptions={
notEnoughData

View File

@ -31,7 +31,6 @@ export const UsersPerProjectChart: VFC<IUsersPerProjectChartProps> = ({
return (
<LineChart
data={notEnoughData ? placeholderData : data}
isLocalTooltip
overrideOptions={{
parsing: {
yAxisKey: 'users',