Skip to content

Commit

Permalink
[charts] Remove unnecessary proptypes from internal component (mui#13518
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JCQuintas authored and thomasmoon committed Sep 6, 2024
1 parent 712b5f4 commit 930bcda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 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 };
4 changes: 2 additions & 2 deletions packages/x-charts/src/BarChart/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export type AnimationData = {
y: number;
width: number;
height: number;
yOrigin: number;
xOrigin: number;
yOrigin?: number;
xOrigin?: number;
layout: BarSeriesType['layout'];
};

Expand Down

0 comments on commit 930bcda

Please sign in to comment.