From 7ed6516b7ce78798511a2d4a516d3cb56f0a0924 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 26 Sep 2020 01:39:14 +0200 Subject: [PATCH] [docs] Remove id columns --- .../components/data-grid/columns/ColumnTypesGrid.js | 1 - .../components/data-grid/columns/ColumnTypesGrid.tsx | 1 - .../data-grid/columns/CustomColumnTypesGrid.js | 1 - .../data-grid/columns/CustomColumnTypesGrid.tsx | 1 - .../data-grid/getting-started/getting-started.md | 2 -- .../components/data-grid/rendering/RenderCellGrid.js | 1 - .../components/data-grid/rendering/RenderCellGrid.tsx | 1 - .../components/data-grid/rendering/RenderHeaderGrid.js | 1 - .../data-grid/rendering/RenderHeaderGrid.tsx | 1 - .../components/data-grid/rendering/StylingCellsGrid.js | 1 - .../data-grid/rendering/StylingCellsGrid.tsx | 1 - .../data-grid/rendering/StylingHeaderGrid.js | 1 - .../data-grid/rendering/StylingHeaderGrid.tsx | 1 - .../data-grid/rendering/ValueFormatterGrid.js | 1 - .../data-grid/rendering/ValueFormatterGrid.tsx | 1 - .../components/data-grid/rendering/ValueGetterGrid.js | 1 - .../components/data-grid/rendering/ValueGetterGrid.tsx | 1 - .../pages/components/data-grid/rendering/rendering.md | 6 ------ .../components/data-grid/rows/ComparatorSortingGrid.js | 1 - .../data-grid/rows/ComparatorSortingGrid.tsx | 1 - packages/grid/data-grid/src/DataGrid.test.tsx | 5 +---- packages/grid/x-grid/src/XGrid.test.tsx | 10 ++-------- .../pages/demos/error/customError.demo.tsx | 1 - .../documentation/pages/demos/error/exception.demo.tsx | 1 - .../pages/demos/error/serverError.demo.tsx | 1 - .../pages/demos/error/serverErrorState.demo.tsx | 1 - 26 files changed, 3 insertions(+), 42 deletions(-) diff --git a/docs/src/pages/components/data-grid/columns/ColumnTypesGrid.js b/docs/src/pages/components/data-grid/columns/ColumnTypesGrid.js index e0c114ff00816..0dda0e62ebe97 100644 --- a/docs/src/pages/components/data-grid/columns/ColumnTypesGrid.js +++ b/docs/src/pages/components/data-grid/columns/ColumnTypesGrid.js @@ -34,7 +34,6 @@ export default function ColumnTypesDemo() {
', () => { brand: 'Nike', }, ], - columns: [ - { field: 'id', hide: true }, - { field: 'brand', width: 100 }, - ], + columns: [{ field: 'brand', width: 100 }], }; describe('layout', () => { before(function beforeHook() { diff --git a/packages/grid/x-grid/src/XGrid.test.tsx b/packages/grid/x-grid/src/XGrid.test.tsx index 5bea4793cf907..79d7aa118e6bc 100644 --- a/packages/grid/x-grid/src/XGrid.test.tsx +++ b/packages/grid/x-grid/src/XGrid.test.tsx @@ -61,10 +61,7 @@ describe('', () => { brand: 'Puma', }, ], - columns: [ - { field: 'id', hide: true }, - { field: 'brand', width: 100 }, - ], + columns: [{ field: 'brand', width: 100 }], }; before(function beforeHook() { @@ -194,10 +191,7 @@ describe('', () => { brand: 'Nike', }, ]} - columns={[ - { field: 'id', hide: true }, - { field: 'brand', width: 100 }, - ]} + columns={[{ field: 'brand', width: 100 }]} checkboxSelection />
, diff --git a/packages/storybook/src/documentation/pages/demos/error/customError.demo.tsx b/packages/storybook/src/documentation/pages/demos/error/customError.demo.tsx index 62cbc5818e664..45592ba509c60 100644 --- a/packages/storybook/src/documentation/pages/demos/error/customError.demo.tsx +++ b/packages/storybook/src/documentation/pages/demos/error/customError.demo.tsx @@ -15,7 +15,6 @@ function CustomErrorOverlay(props) { export default function CustomErrorDemo() { const columns: Columns = [ - { field: 'id', hide: true }, { field: 'name', type: 'string' }, { field: 'age', diff --git a/packages/storybook/src/documentation/pages/demos/error/exception.demo.tsx b/packages/storybook/src/documentation/pages/demos/error/exception.demo.tsx index 8b15300596547..ed7ed313eb418 100644 --- a/packages/storybook/src/documentation/pages/demos/error/exception.demo.tsx +++ b/packages/storybook/src/documentation/pages/demos/error/exception.demo.tsx @@ -4,7 +4,6 @@ import { randomCreatedDate, randomUpdatedDate } from '@material-ui/x-grid-data-g export default function ExceptionDemo() { const columns: Columns = [ - { field: 'id', hide: true }, { field: 'name', type: 'string' }, { field: 'age', diff --git a/packages/storybook/src/documentation/pages/demos/error/serverError.demo.tsx b/packages/storybook/src/documentation/pages/demos/error/serverError.demo.tsx index b327c83a0b8d9..d3a05aaff2001 100644 --- a/packages/storybook/src/documentation/pages/demos/error/serverError.demo.tsx +++ b/packages/storybook/src/documentation/pages/demos/error/serverError.demo.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import { Columns, useApiRef, XGrid } from '@material-ui/x-grid'; const columns: Columns = [ - { field: 'id', hide: true }, { field: 'name', type: 'string' }, { field: 'email', type: 'string' }, { field: 'age', type: 'number' }, 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 d51184968ab54..27cc65786cf78 100644 --- a/packages/storybook/src/documentation/pages/demos/error/serverErrorState.demo.tsx +++ b/packages/storybook/src/documentation/pages/demos/error/serverErrorState.demo.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import { Columns, XGrid } from '@material-ui/x-grid'; const columns: Columns = [ - { field: 'id', hide: true }, { field: 'name', type: 'string' }, { field: 'email', type: 'string' }, { field: 'age', type: 'number' },