Skip to content

Commit

Permalink
Fix ESLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Dec 16, 2024
1 parent 3d5a8a8 commit fda745b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ const ColumnContent = ({ column, data, isGroup, parents }) => {
}

const RowComponent = ({ data, isGroup, parents }) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const columns = useContextSelector(SortableTableContext, ({ columns }) => columns)
// eslint-disable-next-line react-hooks/rules-of-hooks
const columnSpans = useContextSelector(SortableTableContext, ({ columnSpans }) => columnSpans)

const resolveProp = value => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const CollapsedStackedBar = ({
}</p><br />`
const diffArray = differenceArray[this.x!]
this.points?.forEach(point => {
tooltipString += `<span style="color:${point.color}">●</span> <b>${point.series.name}: ${point.y}</b>
tooltipString += `<span style="color:${point.color as string}">●</span> <b>${point.series.name}: ${point.y}</b>
(<span style="color:${getColor(diffArray[point.series.name])};font-weight:bold">${getCorrectSign(
diffArray[point.series.name]
)}</span>)<br />`
Expand Down

0 comments on commit fda745b

Please sign in to comment.