File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
amp/TEMPLATE/reampv2/packages/reampv2-app
modules/ndddashboard/components/charts Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 67
67
"react-spinner" : " ^0.2.7" ,
68
68
"react-spinners" : " ^0.13.8" ,
69
69
"react-table" : " ^7.3.2" ,
70
- "react-tooltip" : " ^5.25.1 " ,
70
+ "react-tooltip" : " ^5.28.0 " ,
71
71
"react-transition-group" : " ^4.4.5" ,
72
72
"react-visibility-sensor" : " ^5.1.1" ,
73
73
"redux" : " ^4.0.5" ,
111
111
"@types/react-bootstrap-table2-paginator" : " ^2.1.3" ,
112
112
"@types/react-dom" : " ^17.0.2" ,
113
113
"@types/react-redux" : " ^7.1.24" ,
114
+ "@types/react-tooltip" : " ^4.2.4" ,
114
115
"@typescript-eslint/eslint-plugin" : " ^6.13.2" ,
115
116
"@typescript-eslint/parser" : " ^6.13.2" ,
116
117
"cross-env" : " 7.0.3" ,
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import PropTypes from 'prop-types';
4
4
import { NDDTranslationContext } from '../StartUp' ;
5
5
import ToolTip from '../tooltips/ToolTip' ;
6
6
import { formatKMB , formatNumberWithSettings } from '../../utils/Utils' ;
7
- import SimpleLegend from '../../../../utils/components/SimpleLegend' ;
8
7
import { CURRENCY_CODE } from '../../utils/constants' ;
8
+ import SimpleLegend from '../../../../utils/components/SimpleLegend' ;
9
9
10
10
const styles = {
11
11
fontFamily : 'sans-serif' ,
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
- import ReactTooltip from 'react-tooltip' ;
2
+ import { Tooltip } from 'react-tooltip' ;
3
3
import PropTypes from 'prop-types' ;
4
4
import './SimpleLegend.css' ;
5
5
@@ -26,12 +26,13 @@ export default class SimpleLegend extends Component {
26
26
} }
27
27
data-tip = { d . name }
28
28
data-for = { index . toString ( ) }
29
+ data-tooltip-content = { d . name }
30
+ data-tooltip-place = "top"
29
31
/>
30
32
< span className = "label" >
31
33
{ d . name . substring ( 0 , 10 ) }
32
- < ReactTooltip place = "top"
33
- effect = "float"
34
- backgroundColor = { getColor ( d ) }
34
+ < Tooltip
35
+ backgroundColor = { getColor ( d ) }
35
36
id = { index . toString ( ) } />
36
37
</ span >
37
38
</ li >
You can’t perform that action at this time.
0 commit comments