diff --git a/packages/react-components/package.json b/packages/react-components/package.json index ea465f0b2..6456607ad 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -24,6 +24,7 @@ "react-chartjs-2": "^2.7.6", "react-grid-layout": "^1.1.0", "react-modal": "^3.8.1", + "react-tooltip": "4.2.14", "react-virtualized": "^9.21.0", "semantic-ui-css": "^2.4.1", "semantic-ui-react": "^0.86.0", diff --git a/packages/react-components/src/components/abstract-output-component.tsx b/packages/react-components/src/components/abstract-output-component.tsx index 656486ada..425c2a07a 100644 --- a/packages/react-components/src/components/abstract-output-component.tsx +++ b/packages/react-components/src/components/abstract-output-component.tsx @@ -7,9 +7,11 @@ import { TimeGraphUnitController } from 'timeline-chart/lib/time-graph-unit-cont import { TimeRange } from '@trace-viewer/base/lib/utils/time-range'; import { OutputComponentStyle } from './utils/output-component-style'; import { OutputStyleModel } from 'tsp-typescript-client/lib/models/styles'; +import { TooltipComponent } from './tooltip-component'; export interface AbstractOutputProps { tspClient: TspClient; + tooltipComponent: TooltipComponent | null; traceId: string; range: TimeRange; nbEvents: number; @@ -61,12 +63,13 @@ export abstract class AbstractOutputComponent
+ data-tip='' + data-for="tooltip-component">