diff --git a/docs/data/data-grid/getting-started/getting-started.md b/docs/data/data-grid/getting-started/getting-started.md index 696a9da03c95..f3820ef2c15e 100644 --- a/docs/data/data-grid/getting-started/getting-started.md +++ b/docs/data/data-grid/getting-started/getting-started.md @@ -138,7 +138,6 @@ In order to benefit from the [CSS overrides](/material-ui/customization/theme-co Internally, it uses module augmentation to extend the default theme structure. ```tsx -// When using TypeScript 4.x and above import type {} from '@mui/x-data-grid/themeAugmentation'; import type {} from '@mui/x-data-grid-pro/themeAugmentation'; import type {} from '@mui/x-data-grid-premium/themeAugmentation'; diff --git a/docs/data/data-grid/style/style.md b/docs/data/data-grid/style/style.md index 71ee02e6f58e..a08114ae6385 100644 --- a/docs/data/data-grid/style/style.md +++ b/docs/data/data-grid/style/style.md @@ -122,6 +122,7 @@ By default, the Data Grid uses the MaterialĀ UI `theme.palette.background.defaul ```tsx import { createTheme } from '@mui/material/styles'; +import type {} from '@mui/x-data-grid/themeAugmentation'; const theme = createTheme({ mixins: { diff --git a/docs/data/date-pickers/base-concepts/base-concepts.md b/docs/data/date-pickers/base-concepts/base-concepts.md index 636aa7f934ca..82590c92d376 100644 --- a/docs/data/date-pickers/base-concepts/base-concepts.md +++ b/docs/data/date-pickers/base-concepts/base-concepts.md @@ -155,12 +155,8 @@ To benefit from the [CSS overrides](/material-ui/customization/theme-components/ Internally, it uses module augmentation to extend the default theme structure. ```tsx -// When using TypeScript 4.x and above import type {} from '@mui/x-date-pickers/themeAugmentation'; import type {} from '@mui/x-date-pickers-pro/themeAugmentation'; -// When using TypeScript 3.x and below -import '@mui/x-date-pickers/themeAugmentation'; -import '@mui/x-date-pickers-pro/themeAugmentation'; const theme = createTheme({ components: { diff --git a/docs/data/tree-view/getting-started/getting-started.md b/docs/data/tree-view/getting-started/getting-started.md index 75eb6936f8b0..79dc191bdc92 100644 --- a/docs/data/tree-view/getting-started/getting-started.md +++ b/docs/data/tree-view/getting-started/getting-started.md @@ -92,10 +92,7 @@ In order to benefit from the [CSS overrides](/material-ui/customization/theme-co Internally, it uses module augmentation to extend the default theme structure. ```tsx -// When using TypeScript 4.x and above import type {} from '@mui/x-tree-view/themeAugmentation'; -// When using TypeScript 3.x and below -import '@mui/x-tree-view/themeAugmentation'; const theme = createTheme({ components: {