Skip to content

Commit

Permalink
[styles] Fix typo in import error (#31167)
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Feb 24, 2022
1 parent a2bab46 commit 4764088
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/public/static/error-codes.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"11": "MUI: The color%s provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `%s` property.",
"12": "MUI: The color%s provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `%s` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });",
"13": "Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.",
"14": "MUI: makeStyles is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details.",
"15": "MUI: withStyles is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details.",
"16": "MUI: withTheme is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details.",
"14": "MUI: makeStyles is no longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details.",
"15": "MUI: withStyles is no longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details.",
"16": "MUI: withTheme is no longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details.",
"17": "MUI: Expected valid input target. Did you use a custom `components.Input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.",
"19": "MUI: `useColorScheme` must be called under <CssVarsProvider />"
}
2 changes: 1 addition & 1 deletion packages/mui-material/src/styles/makeStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MuiError from '@mui/utils/macros/MuiError.macro';

export default function makeStyles() {
throw new MuiError(
'MUI: makeStyles is not longer exported from @mui/material/styles.\n' +
'MUI: makeStyles is no longer exported from @mui/material/styles.\n' +
'You have to import it from @mui/styles.\n' +
'See https://mui.com/r/migration-v4/#mui-material-styles for more details.',
);
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/styles/withStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MuiError from '@mui/utils/macros/MuiError.macro';

export default function withStyles() {
throw new MuiError(
'MUI: withStyles is not longer exported from @mui/material/styles.\n' +
'MUI: withStyles is no longer exported from @mui/material/styles.\n' +
'You have to import it from @mui/styles.\n' +
'See https://mui.com/r/migration-v4/#mui-material-styles for more details.',
);
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/styles/withTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MuiError from '@mui/utils/macros/MuiError.macro';

export default function withTheme() {
throw new MuiError(
'MUI: withTheme is not longer exported from @mui/material/styles.\n' +
'MUI: withTheme is no longer exported from @mui/material/styles.\n' +
'You have to import it from @mui/styles.\n' +
'See https://mui.com/r/migration-v4/#mui-material-styles for more details.',
);
Expand Down

0 comments on commit 4764088

Please sign in to comment.