Added visits highlightning capabilities to line chart

This commit is contained in:
Alejandro Celaya
2020-09-20 11:43:24 +02:00
parent 749c757cbd
commit 78d97a64aa
5 changed files with 59 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
import { ChangeEvent, FC } from 'react';
export const pointerOnHover = ({ target }: ChangeEvent<HTMLElement>, chartElement: FC[]) => {
target.style.cursor = chartElement[0] ? 'pointer' : 'default';
};