From ec4618228b6778ffed6287eabbcaa0ebcd67cd9d Mon Sep 17 00:00:00 2001 From: Rajat Date: Sun, 1 Sep 2024 12:02:21 +0530 Subject: [PATCH 1/4] fix: remove outdated things --- docs/data/data-grid/getting-started/getting-started.md | 2 +- docs/data/data-grid/style/style.md | 1 + docs/data/date-pickers/base-concepts/base-concepts.md | 5 +---- docs/data/tree-view/getting-started/getting-started.md | 4 +--- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/data/data-grid/getting-started/getting-started.md b/docs/data/data-grid/getting-started/getting-started.md index 696a9da03c95..8cf45db8da07 100644 --- a/docs/data/data-grid/getting-started/getting-started.md +++ b/docs/data/data-grid/getting-started/getting-started.md @@ -138,7 +138,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-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..2b5c02a1f0b8 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..cbe4f8c56bdd 100644 --- a/docs/data/date-pickers/base-concepts/base-concepts.md +++ b/docs/data/date-pickers/base-concepts/base-concepts.md @@ -155,12 +155,9 @@ 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..b3ea646cc91c 100644 --- a/docs/data/tree-view/getting-started/getting-started.md +++ b/docs/data/tree-view/getting-started/getting-started.md @@ -92,10 +92,8 @@ 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: { From e6ac205f55b15049dd8f18ebd3af66c224d393a7 Mon Sep 17 00:00:00 2001 From: Rajat Date: Sun, 1 Sep 2024 12:21:44 +0530 Subject: [PATCH 2/4] fix: prettier --- docs/data/data-grid/getting-started/getting-started.md | 1 - docs/data/data-grid/style/style.md | 2 +- docs/data/date-pickers/base-concepts/base-concepts.md | 1 - docs/data/tree-view/getting-started/getting-started.md | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/data/data-grid/getting-started/getting-started.md b/docs/data/data-grid/getting-started/getting-started.md index 8cf45db8da07..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 - 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 2b5c02a1f0b8..a08114ae6385 100644 --- a/docs/data/data-grid/style/style.md +++ b/docs/data/data-grid/style/style.md @@ -122,7 +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"; +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 cbe4f8c56bdd..82590c92d376 100644 --- a/docs/data/date-pickers/base-concepts/base-concepts.md +++ b/docs/data/date-pickers/base-concepts/base-concepts.md @@ -155,7 +155,6 @@ To benefit from the [CSS overrides](/material-ui/customization/theme-components/ Internally, it uses module augmentation to extend the default theme structure. ```tsx - import type {} from '@mui/x-date-pickers/themeAugmentation'; import type {} from '@mui/x-date-pickers-pro/themeAugmentation'; diff --git a/docs/data/tree-view/getting-started/getting-started.md b/docs/data/tree-view/getting-started/getting-started.md index b3ea646cc91c..79dc191bdc92 100644 --- a/docs/data/tree-view/getting-started/getting-started.md +++ b/docs/data/tree-view/getting-started/getting-started.md @@ -92,7 +92,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 - import type {} from '@mui/x-tree-view/themeAugmentation'; const theme = createTheme({ From 1d378ba1dc6d3e55bd438e5e7653f15fa9168efe Mon Sep 17 00:00:00 2001 From: Rajat Date: Tue, 3 Sep 2024 11:00:06 +0530 Subject: [PATCH 3/4] ci: run tests again From f7f7381717ef2c19e3eb366f4ced25b2d40bdec8 Mon Sep 17 00:00:00 2001 From: Lukas Date: Tue, 3 Sep 2024 10:49:06 +0300 Subject: [PATCH 4/4] Trigger CI