Removed no longer used dependencies

This commit is contained in:
Alejandro Celaya
2020-09-05 08:57:50 +02:00
parent d4094e66b3
commit 3cec2efbbd
5 changed files with 6 additions and 53 deletions

View File

@@ -68,7 +68,6 @@ const determineHeight = (isBarChart: boolean, labels: string[]): number | undefi
return isBarChart && labels.length > 20 ? labels.length * 8 : undefined;
};
/* eslint-disable react/prop-types */
const renderPieChartLegend = ({ config }: Chart) => {
const { labels = [], datasets = [] } = config.data ?? {};
const { defaultColor } = config.options ?? {} as any;
@@ -88,7 +87,6 @@ const renderPieChartLegend = ({ config }: Chart) => {
</ul>
);
};
/* eslint-enable react/prop-types */
const chartElementAtEvent = (onClick?: (label: string) => void) => ([ chart ]: [{ _index: number; _chart: Chart }]) => {
if (!onClick || !chart) {