mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Timeline: Renames component to avoid casing conflicts (#32736)
This commit is contained in:
parent
a56293142a
commit
10697d6130
@ -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';
|
@ -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';
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user