Skip to content

Commit

Permalink
Add import restriction for MUI's Dialog (#3253)
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtnerma authored Jan 23, 2025
1 parent c0c9ad0 commit cc16528
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docs/7-migration-guide/migration-from-v7-to-v8.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,13 @@ Example:
></Tooltip>
```

### Import `Dialog` from `@comet/admin` package

```diff
- import { Dialog } from "@mui/material";
+ import { Dialog } from "@comet/admin";
```

### Update MUI - X Packages

In `package.json` update the version of the MUI X packages to `^7.22.3`.
Expand Down
5 changes: 5 additions & 0 deletions packages/eslint-config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ module.exports = {
importNames: ["Alert"],
message: "Please use Alert from @comet/admin instead",
},
{
name: "@mui/material",
importNames: ["Dialog"],
message: "Please use Dialog from @comet/admin instead",
},
{
name: "@mui/x-data-grid",
importNames: ["GridColDef"],
Expand Down

0 comments on commit cc16528

Please sign in to comment.