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>; data: ChartData<'line', unknown>;
aspectRatio?: number; aspectRatio?: number;
cover?: ReactNode; cover?: ReactNode;
isLocalTooltip?: boolean;
overrideOptions?: ChartOptions<'line'>; overrideOptions?: ChartOptions<'line'>;
TooltipComponent?: ({ TooltipComponent?: ({
tooltip, tooltip,
@ -94,7 +93,6 @@ const LineChartComponent: VFC<{
data, data,
aspectRatio = 2.5, aspectRatio = 2.5,
cover, cover,
isLocalTooltip,
overrideOptions, overrideOptions,
TooltipComponent, TooltipComponent,
}) => { }) => {
@ -109,7 +107,6 @@ const LineChartComponent: VFC<{
locationSettings, locationSettings,
setTooltip, setTooltip,
Boolean(cover), Boolean(cover),
isLocalTooltip,
), ),
...overrideOptions, ...overrideOptions,
}), }),

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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