From 7a30c6f3595f94dfd79ae130b135eb6bcc10a8a0 Mon Sep 17 00:00:00 2001 From: delangle Date: Tue, 19 Oct 2021 12:20:47 +0200 Subject: [PATCH 1/3] [core] Remove unused GridSlotComponentProps interface --- .../models/params/gridSlotComponentProps.ts | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 packages/grid/_modules_/grid/models/params/gridSlotComponentProps.ts diff --git a/packages/grid/_modules_/grid/models/params/gridSlotComponentProps.ts b/packages/grid/_modules_/grid/models/params/gridSlotComponentProps.ts deleted file mode 100644 index c1beccd9cf931..0000000000000 --- a/packages/grid/_modules_/grid/models/params/gridSlotComponentProps.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { GridState } from '../gridState'; -import { GridApiRef } from '../api/gridApiRef'; -import { GridColumns } from '../colDef/gridColDef'; -import { GridRootContainerRef } from '../gridRootContainerRef'; -import { GridRowModel } from '../gridRows'; - -/** - * Object passed as React prop in the component override. - */ -export interface GridSlotComponentProps { - /** - * The GridState object containing the current grid state. - */ - state: GridState; - /** - * The full set of rows. - */ - rows: GridRowModel[]; - /** - * The full set of columns. - */ - columns: GridColumns; - /** - * GridApiRef that let you manipulate the grid. - */ - apiRef: GridApiRef; - /** - * The ref of the inner div Element of the grid. - */ - rootElement: GridRootContainerRef; -} From 8c284382e2f5811c774a8eb4562b6cc1491d9e41 Mon Sep 17 00:00:00 2001 From: delangle Date: Tue, 19 Oct 2021 12:29:35 +0200 Subject: [PATCH 2/3] Remove exports --- packages/grid/_modules_/grid/models/params/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/grid/_modules_/grid/models/params/index.ts b/packages/grid/_modules_/grid/models/params/index.ts index f4d34f5e8c803..9a6441f45e0b4 100644 --- a/packages/grid/_modules_/grid/models/params/index.ts +++ b/packages/grid/_modules_/grid/models/params/index.ts @@ -7,7 +7,6 @@ export * from './gridEditCellParams'; export * from './gridRowParams'; export * from './gridRowScrollEndParams'; export * from './gridScrollParams'; -export * from './gridSlotComponentProps'; export * from './gridSortModelParams'; export * from './gridStateChangeParams'; export * from './gridViewportRowsChangeParams'; From 8edc73458ebd3fb6e0801aa041bc0029d0c77718 Mon Sep 17 00:00:00 2001 From: delangle Date: Tue, 19 Oct 2021 12:29:51 +0200 Subject: [PATCH 3/3] Fix typos --- .../documentation/pages/demos/error/serverErrorState.demo.tsx | 2 +- scripts/sizeSnapshot/create.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/storybook/src/documentation/pages/demos/error/serverErrorState.demo.tsx b/packages/storybook/src/documentation/pages/demos/error/serverErrorState.demo.tsx index 4cf68fc362682..26098229771a2 100644 --- a/packages/storybook/src/documentation/pages/demos/error/serverErrorState.demo.tsx +++ b/packages/storybook/src/documentation/pages/demos/error/serverErrorState.demo.tsx @@ -25,7 +25,7 @@ export default function ServerErrorStateDemo() { setLoading(true); loadServerRows().catch((serverError) => { setLoading(false); - setError({ message: `An error occured! Details: ${serverError.message}` }); + setError({ message: `An error occurred! Details: ${serverError.message}` }); }); }, []); diff --git a/scripts/sizeSnapshot/create.js b/scripts/sizeSnapshot/create.js index 36099518ee1d5..4551d54ec5035 100644 --- a/scripts/sizeSnapshot/create.js +++ b/scripts/sizeSnapshot/create.js @@ -29,7 +29,7 @@ async function getWebpackSizes(webpackEnvironment) { errors: true, }); throw new Error( - `The following errors occured during bundling of ${Object.keys( + `The following errors occurred during bundling of ${Object.keys( entrypoints, )} with webpack: \n${errors.join('\n')}`, );