Skip to content

Commit c931792

Browse files
committed
AMP-30906: Resolve ndd dash bug
1 parent e3c7781 commit c931792

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

amp/TEMPLATE/reampv2/packages/reampv2-app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"react-spinner": "^0.2.7",
6868
"react-spinners": "^0.13.8",
6969
"react-table": "^7.3.2",
70-
"react-tooltip": "^5.25.1",
70+
"react-tooltip": "^5.28.0",
7171
"react-transition-group": "^4.4.5",
7272
"react-visibility-sensor": "^5.1.1",
7373
"redux": "^4.0.5",
@@ -111,6 +111,7 @@
111111
"@types/react-bootstrap-table2-paginator": "^2.1.3",
112112
"@types/react-dom": "^17.0.2",
113113
"@types/react-redux": "^7.1.24",
114+
"@types/react-tooltip": "^4.2.4",
114115
"@typescript-eslint/eslint-plugin": "^6.13.2",
115116
"@typescript-eslint/parser": "^6.13.2",
116117
"cross-env": "7.0.3",

amp/TEMPLATE/reampv2/packages/reampv2-app/src/modules/ndddashboard/components/charts/TopChart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import PropTypes from 'prop-types';
44
import { NDDTranslationContext } from '../StartUp';
55
import ToolTip from '../tooltips/ToolTip';
66
import { formatKMB, formatNumberWithSettings } from '../../utils/Utils';
7-
import SimpleLegend from '../../../../utils/components/SimpleLegend';
87
import { CURRENCY_CODE } from '../../utils/constants';
8+
import SimpleLegend from '../../../../utils/components/SimpleLegend';
99

1010
const styles = {
1111
fontFamily: 'sans-serif',

amp/TEMPLATE/reampv2/packages/reampv2-app/src/utils/components/SimpleLegend.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import ReactTooltip from 'react-tooltip';
2+
import { Tooltip } from 'react-tooltip';
33
import PropTypes from 'prop-types';
44
import './SimpleLegend.css';
55

@@ -26,12 +26,13 @@ export default class SimpleLegend extends Component {
2626
}}
2727
data-tip={d.name}
2828
data-for={index.toString()}
29+
data-tooltip-content={d.name}
30+
data-tooltip-place="top"
2931
/>
3032
<span className="label">
3133
{d.name.substring(0, 10)}
32-
<ReactTooltip place="top"
33-
effect="float"
34-
backgroundColor={getColor(d)}
34+
<Tooltip
35+
backgroundColor={getColor(d)}
3536
id={index.toString()} />
3637
</span>
3738
</li>

0 commit comments

Comments
 (0)