Skip to content

Commit

Permalink
nbsps
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelsycamore committed Oct 9, 2024
1 parent 7111d49 commit 0eaf4a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/data/material/migration/migration-v4/v5-style-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ You can import it from the deprecated `@mui/styles` package if you need to conti

### ✅ Update `makeStyles` import

Since Material UI v5 doesn't use JSS, the JSS-based `makeStyles` utility is no longer exported by `@mui/material/styles`.
Since Material UI v5 doesn't use JSS, the JSS-based `makeStyles` utility is no longer exported by `@mui/material/styles`.
While migrating your app away from JSS, you can temporarily import this deprecated utility from `@mui/styles/makeStyles` before refactoring your components further.

Make sure to add a `ThemeProvider` at the root of your application, as the `defaultTheme` is no longer available.
Expand Down Expand Up @@ -619,7 +619,7 @@ You can import it from the deprecated `@mui/styles` package if you need to conti

### styled

Since Material UI v5 doesn't use JSS, the JSS-based `styled` utility exported by `@mui/material/styles` has been replaced with an equivalent Emotion-based utility that's not backwards compatible.
Since Material UI v5 doesn't use JSS, the JSS-based `styled` utility exported by `@mui/material/styles` has been replaced with an equivalent Emotion-based utility that's not backwards compatible.
While migrating your app away from JSS, you can temporarily import the JSS-based utility from the deprecated `@mui/styles` package before refactoring your components further.

Make sure to add a `ThemeProvider` at the root of your application, as the `defaultTheme` is no longer available.
Expand Down Expand Up @@ -662,7 +662,7 @@ You can import it from the deprecated `@mui/styles` package if you need to conti

### ✅ Update withStyles import

Since Material UI v5 doesn't use JSS, the JSS-based `withStyles` utility is no longer exported by `@mui/material/styles`.
Since Material UI v5 doesn't use JSS, the JSS-based `withStyles` utility is no longer exported by `@mui/material/styles`.
While migrating your app away from JSS, you can temporarily import this deprecated utility from `@mui/styles/withStyles` before refactoring your components further.

Make sure to add a `ThemeProvider` at the root of your application, as the `defaultTheme` is no longer available.
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-styles/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @mui/styles

The legacy styling solution for Material UI, now deprecated and not recommended for use.
The legacy styling solution for Material UI, now deprecated and not recommended for use.

## Installation

Expand Down

0 comments on commit 0eaf4a5

Please sign in to comment.