mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-20 13:36:20 +00:00
Added visits highlightning capabilities to line chart
This commit is contained in:
5
src/utils/helpers/charts.ts
Normal file
5
src/utils/helpers/charts.ts
Normal 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';
|
||||
};
|
||||
Reference in New Issue
Block a user