Timeline: Renames component to avoid casing conflicts (#32736)

This commit is contained in:
Hugo Häggmark 2021-04-07 08:16:14 +02:00 committed by GitHub
parent a56293142a
commit 10697d6130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ import { LegendDisplayMode } from '../VizLegend/types';
import { VizLayout } from '../VizLayout/VizLayout';
import { TimelineProps } from './types';
class UnthemedTimeline extends React.Component<TimelineProps, GraphNGState> {
class UnthemedTimelineChart extends React.Component<TimelineProps, GraphNGState> {
constructor(props: TimelineProps) {
super(props);
let dimFields = props.fields;
@ -191,5 +191,5 @@ class UnthemedTimeline extends React.Component<TimelineProps, GraphNGState> {
}
}
export const Timeline = withTheme(UnthemedTimeline);
Timeline.displayName = 'Timeline';
export const TimelineChart = withTheme(UnthemedTimelineChart);
TimelineChart.displayName = 'TimelineChart';

View File

@ -188,7 +188,7 @@ export { PluginSignatureBadge, PluginSignatureBadgeProps } from './PluginSignatu
export { InlineFormLabel } from './FormLabel/FormLabel';
// Select
import { Select, AsyncSelect } from './Forms/Legacy/Select/Select';
import { AsyncSelect, Select } from './Forms/Legacy/Select/Select';
import { IndicatorsContainer } from './Forms/Legacy/Select/IndicatorsContainer';
import { NoOptionsMessage } from './Forms/Legacy/Select/NoOptionsMessage';
@ -221,7 +221,7 @@ export { usePlotContext, usePlotPluginContext } from './uPlot/context';
export { GraphNG, FIXED_UNIT } from './GraphNG/GraphNG';
export { useGraphNGContext } from './GraphNG/hooks';
export { BarChart } from './BarChart/BarChart';
export { Timeline } from './Timeline/Timeline';
export { TimelineChart } from './Timeline/TimelineChart';
export { BarChartOptions, BarStackingMode, BarValueVisibility, BarChartFieldConfig } from './BarChart/types';
export { TimelineOptions, TimelineFieldConfig } from './Timeline/types';
export { GraphNGLegendEvent, GraphNGLegendEventMode } from './GraphNG/types';

View File

@ -1,6 +1,6 @@
import React, { useCallback } from 'react';
import { PanelProps } from '@grafana/data';
import { Timeline, GraphNGLegendEvent, TimelineOptions } from '@grafana/ui';
import { GraphNGLegendEvent, TimelineChart, TimelineOptions } from '@grafana/ui';
import { changeSeriesColorConfigFactory } from '../timeseries/overrides/colorSeriesConfigFactory';
import { hideSeriesConfigFactory } from '../timeseries/overrides/hideSeriesConfigFactory';
@ -42,7 +42,7 @@ export const TimelinePanel: React.FC<TimelinePanelProps> = ({
}
return (
<Timeline
<TimelineChart
data={data.series}
timeRange={timeRange}
timeZone={timeZone}