Skip to content

Commit

Permalink
no more needed
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 19, 2020
1 parent 12e2ffc commit 64a6c35
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/grid/data-grid/src/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const DataGrid2 = React.forwardRef<HTMLDivElement, DataGridProps>(function DataG
});

DataGrid2.propTypes = {
// @ts-expect-error to fix
apiRef: chainPropTypes(PropTypes.any, (props) => {
if (props.apiRef != null) {
throw new Error(
Expand All @@ -67,7 +66,6 @@ DataGrid2.propTypes = {
);
}
}),
// @ts-expect-error to fix
columns: chainPropTypes(PropTypes.any, (props) => {
if (props.columns && props.columns.some((column) => column.resizable)) {
throw new Error(
Expand All @@ -80,7 +78,6 @@ DataGrid2.propTypes = {
);
}
}),
// @ts-expect-error to fix
disableColumnReorder: chainPropTypes(PropTypes.bool, (props) => {
if (props.disableColumnReorder === false) {
throw new Error(
Expand All @@ -93,7 +90,6 @@ DataGrid2.propTypes = {
);
}
}),
// @ts-expect-error to fix
disableColumnResize: chainPropTypes(PropTypes.bool, (props) => {
if (props.disableColumnResize === false) {
throw new Error(
Expand All @@ -106,7 +102,6 @@ DataGrid2.propTypes = {
);
}
}),
// @ts-expect-error to fix
disableMultipleColumnsSorting: chainPropTypes(PropTypes.bool, (props) => {
if (props.disableMultipleColumnsSorting === false) {
throw new Error(
Expand All @@ -121,7 +116,6 @@ DataGrid2.propTypes = {

return null;
}),
// @ts-expect-error to fix
disableMultipleSelection: chainPropTypes(PropTypes.bool, (props) => {
if (props.disableMultipleSelection === false) {
throw new Error(
Expand All @@ -136,7 +130,6 @@ DataGrid2.propTypes = {

return null;
}),
// @ts-expect-error to fix
pageSize: chainPropTypes(PropTypes.number, (props) => {
if (props.pageSize && props.pageSize > MAX_PAGE_SIZE) {
throw new Error(
Expand Down

0 comments on commit 64a6c35

Please sign in to comment.