mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
Add Color import to TraceView component
This commit is contained in:
parent
b55ae93ade
commit
af5a5332e5
@ -16,6 +16,7 @@ import PageLoader from 'CommonUI/src/Components/Loader/PageLoader';
|
||||
import ErrorMessage from 'CommonUI/src/Components/ErrorMessage/ErrorMessage';
|
||||
import SpanUtil from '../../../../../../Utils/SpanUtil';
|
||||
import OneUptimeDate from 'Common/Types/Date';
|
||||
import Color from 'Common/Types/Color';
|
||||
|
||||
const TraceView: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps
|
||||
@ -208,7 +209,10 @@ const TraceView: FunctionComponent<PageComponentProps> = (
|
||||
};
|
||||
}),
|
||||
bars: spans.map((span: Span) => {
|
||||
const spanColor = SpanUtil.getGanttChartBarColor(span);
|
||||
const spanColor: {
|
||||
barColor: Color;
|
||||
titleColor: Color;
|
||||
} = SpanUtil.getGanttChartBarColor(span);
|
||||
|
||||
return {
|
||||
id: span.spanId!,
|
||||
|
Loading…
Reference in New Issue
Block a user