Add Color import to TraceView component

This commit is contained in:
Simon Larsen 2024-02-20 18:44:02 +00:00
parent b55ae93ade
commit af5a5332e5
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -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!,