Skip to content

Commit

Permalink
Remove proptypes from internal component
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Jun 17, 2024
1 parent d905a09 commit 718e722
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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 };

0 comments on commit 718e722

Please sign in to comment.