From da65d7cc863796032c4e6380370c5fd1e9fb0ba1 Mon Sep 17 00:00:00 2001 From: Jaka Daneu Date: Sat, 26 Oct 2024 10:29:44 +0200 Subject: [PATCH] =?UTF-8?q?refactor(analytics):=20=E2=99=BB=EF=B8=8F=20Rem?= =?UTF-8?q?ove=20PropTypes=20from=20CustomSeriesButtons=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Analytics/CustomSeriesButtons/index.jsx | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/pages/Analytics/CustomSeriesButtons/index.jsx b/src/pages/Analytics/CustomSeriesButtons/index.jsx index f7de2876..0056488c 100644 --- a/src/pages/Analytics/CustomSeriesButtons/index.jsx +++ b/src/pages/Analytics/CustomSeriesButtons/index.jsx @@ -1,6 +1,6 @@ +/* eslint-disable react/prop-types */ /** @import * as Types from "../types" */ -import PropTypes from 'prop-types'; import { useState } from 'react'; import SeriesButton from '../SeriesButton'; @@ -12,8 +12,6 @@ import SeriesButton from '../SeriesButton'; * @param {Object} props - The properties object. * @param {Types.ChartRefProperty} props.chart - The Highcharts chart instance. * @returns {JSX.Element} The rendered CustomSeriesButtons component. - * @example - * return ; */ const CustomSeriesButtons = function CustomSeriesButtons({ chart }) { const [buttonsVisibility, setButtonsVisibility] = useState(true); @@ -71,19 +69,4 @@ const CustomSeriesButtons = function CustomSeriesButtons({ chart }) { ); }; -CustomSeriesButtons.propTypes = { - chart: PropTypes.shape({ - series: PropTypes.arrayOf( - PropTypes.shape({ - name: PropTypes.string, - visible: PropTypes.bool, - color: PropTypes.string, - setVisible: PropTypes.func, - // eslint-disable-next-line react/forbid-prop-types - group: PropTypes.object, - }), - ), - }).isRequired, -}; - export default CustomSeriesButtons;