Skip to content

Commit

Permalink
Fix typo TOOLTIP_ROW_NAME_CLASS_NANE -> TOOLTIP_ROW_NAME_CLASS_NAME (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
melikhov-dev authored Jan 10, 2025
1 parent e0279aa commit 0d81c1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import formatTooltip, {
TOOLTIP_HEADER_CLASS_NAME,
TOOLTIP_LIST_CLASS_NAME,
TOOLTIP_ROW_CLASS_NAME,
TOOLTIP_ROW_NAME_CLASS_NANE,
TOOLTIP_ROW_NAME_CLASS_NAME,
} from '../tooltip/tooltip';

import {handleLegendItemClick} from './handleLegendItemClick';
Expand Down Expand Up @@ -193,7 +193,7 @@ export function synchronizeTooltipTablesCellsWidth(tooltipContainer, isMobile) {
}

if (isMobile && tooltipOverflowsViewport) {
const rowNamesNodes = tooltipContainer.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NANE}`);
const rowNamesNodes = tooltipContainer.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NAME}`);

for (let i = 0; i < rowNamesNodes.length; i++) {
const node = rowNamesNodes[i];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import './tooltip.scss';
export const SERIES_NAME_DATA_ATTRIBUTE = 'data-series-name';
export const SERIES_IDX_DATA_ATTRIBUTE = 'data-series-idx';
export const TOOLTIP_CONTAINER_CLASS_NAME = '_tooltip';
export const TOOLTIP_ROW_NAME_CLASS_NANE = '_tooltip-rows__name-td';
export const TOOLTIP_ROW_NAME_CLASS_NAME = '_tooltip-rows__name-td';
export const TOOLTIP_ROW_CLASS_NAME = '_tooltip-row';
export const TOOLTIP_HEADER_CLASS_NAME = '_tooltip-header';
export const TOOLTIP_LIST_CLASS_NAME = '_tooltip-list';
Expand All @@ -36,7 +36,7 @@ const renderLineShapeCell = (line: TooltipLine) =>
</td>`;

const renderNameCell = (line: TooltipLine) =>
`<td class="${TOOLTIP_ROW_NAME_CLASS_NANE}">
`<td class="${TOOLTIP_ROW_NAME_CLASS_NAME}">
${line.hideSeriesName ? '' : escapeHTML(line.seriesName)}
</td>`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
TOOLTIP_FOOTER_CLASS_NAME,
TOOLTIP_LIST_CLASS_NAME,
TOOLTIP_ROW_CLASS_NAME,
TOOLTIP_ROW_NAME_CLASS_NANE,
TOOLTIP_ROW_NAME_CLASS_NAME,
} from '../graph/tooltip/tooltip';
import {i18n} from '../i18n/i18n';

Expand Down Expand Up @@ -324,7 +324,7 @@ function initHighcharts({isMobile}) {
}

if (isFixation) {
const rowNames = this.container.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NANE}`);
const rowNames = this.container.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NAME}`);

for (let i = 0; i < rowNames.length; i++) {
const rowNameNode = rowNames[i];
Expand Down

0 comments on commit 0d81c1e

Please sign in to comment.