From 718e7228f9ede1966d63d3b2ef9f930cc87ec0aa Mon Sep 17 00:00:00 2001 From: Jose Quintas Date: Mon, 17 Jun 2024 13:24:11 +0200 Subject: [PATCH] Remove proptypes from internal component --- .../src/BarChart/BarLabel/BarLabelPlot.tsx | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx b/packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx index 2b14549f2eb59..c11af816ae046 100644 --- a/packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx +++ b/packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx @@ -1,5 +1,4 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; import { useTransition } from '@react-spring/web'; import type { AnimationData, CompletedBarData } from '../types'; import { BarLabelItem, BarLabelItemProps } from './BarLabelItem'; @@ -66,29 +65,4 @@ function BarLabelPlot(props: BarLabelPlotProps) { ); } -BarLabelPlot.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the TypeScript types and run "pnpm proptypes" | - // ---------------------------------------------------------------------- - barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]), - bars: PropTypes.arrayOf( - PropTypes.shape({ - color: PropTypes.string.isRequired, - dataIndex: PropTypes.number.isRequired, - height: PropTypes.number.isRequired, - layout: PropTypes.oneOf(['horizontal', 'vertical']), - maskId: PropTypes.string.isRequired, - seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired, - value: PropTypes.number, - width: PropTypes.number.isRequired, - x: PropTypes.number.isRequired, - xOrigin: PropTypes.number.isRequired, - y: PropTypes.number.isRequired, - yOrigin: PropTypes.number.isRequired, - }), - ).isRequired, - skipAnimation: PropTypes.bool, -} as any; - export { BarLabelPlot };