Skip to content

Commit

Permalink
[core] Apply () function convention
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 23, 2024
1 parent 6a5545e commit 551325f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Same changes as in `@mui/x-charts@7.21.0`.

#### `@mui/x-tree-view@7.21.0`

- [TreeView] Fix `alpha` usage with CSS variables (#14969) @wangkailang
- [TreeView] Fix `alpha()` usage with CSS variables (#14969) @wangkailang
- [TreeView] Fix usage of the `aria-selected` attribute (#14991) @flaviendelangle
- [TreeView] Fix hydration error (#15002) @flaviendelangle

Expand Down
4 changes: 2 additions & 2 deletions docs/data/data-grid/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const theme = createTheme(
</ThemeProvider>;
```

Note that `createTheme` accepts any number of arguments.
Note that `createTheme()` accepts any number of arguments.
If you are already using the [translations of the core components](/material-ui/guides/localization/#locale-text), you can add `bgBG` as a new argument.
The same import works for Data Grid Pro as it's an extension of Data Grid.

Expand All @@ -86,7 +86,7 @@ const theme = createTheme(
</ThemeProvider>;
```

If you want to pass language translations directly to the Data Grid without using `createTheme` and `ThemeProvider`, you can directly load the language translations from `@mui/x-data-grid/locales`.
If you want to pass language translations directly to the Data Grid without using `createTheme()` and `ThemeProvider`, you can directly load the language translations from `@mui/x-data-grid/locales`.

```jsx
import { DataGrid } from '@mui/x-data-grid';
Expand Down
4 changes: 2 additions & 2 deletions docs/data/date-pickers/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function App({ children }) {
}
```

Note that `createTheme` accepts any number of arguments.
Note that `createTheme()` accepts any number of arguments.
If you are already using the [translations of the core components](/material-ui/guides/localization/#locale-text) or the [translations of the Data Grid](/x/react-data-grid/localization/#locale-text), you can add `deDE` as a new argument.

```jsx
Expand All @@ -73,7 +73,7 @@ function App({ children }) {

### Using LocalizationProvider

If you want to pass language translations without using `createTheme` and `ThemeProvider`,
If you want to pass language translations without using `createTheme()` and `ThemeProvider`,
you can directly load the language translations from the `@mui/x-date-pickers` or `@mui/x-date-pickers-pro` package and pass them to the `LocalizationProvider`.

```jsx
Expand Down

0 comments on commit 551325f

Please sign in to comment.