Skip to content

Commit 8d3f662

Browse files
authored
Merge pull request #11090 from marmelab/update-mui-localization-documentation
[Doc] Update AdapterDateFns imports for MUIX v8
2 parents 6065878 + e17837d commit 8d3f662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/DateRangeInput.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ import { fr } from 'date-fns/locale/fr'
200200
import { EventEdit } from './events';
201201

202202
import { LocalizationProvider } from '@mui/x-date-pickers-pro';
203-
import { AdapterDateFns } from '@mui/x-date-pickers-pro/AdapterDateFnsV3';
203+
import { AdapterDateFns } from '@mui/x-date-pickers-pro/AdapterDateFns';
204204

205205
export const App = () => (
206206
<LocalizationProvider dateAdapter={AdapterDateFns} adapterLocale={fr}>
@@ -211,7 +211,7 @@ export const App = () => (
211211
);
212212
```
213213

214-
**Note**: To wrap your admin using a `<DateInput>`, a `<DateTimeInput>` or a `<TimeInput>`, you need to import `LocalizationProvider` from `@mui/x-date-pickers` and `AdapterDateFns` from `@mui/x-date-pickers/AdapterDateFnsV3`. But, to wrap your admin using a `<DateRangeInput>`, you need to import `LocalizationProvider` from `@mui/x-date-pickers-pro` and `AdapterDateFns` from `@mui/x-date-pickers-pro/AdapterDateFnsV3`. If you use both components, please use `@mui/x-date-pickers-pro` imports.
214+
**Note**: To wrap your admin using a `<DateInput>`, a `<DateTimeInput>` or a `<TimeInput>`, you need to import `LocalizationProvider` from `@mui/x-date-pickers` and `AdapterDateFns` from `@mui/x-date-pickers/AdapterDateFns`. But, to wrap your admin using a `<DateRangeInput>`, you need to import `LocalizationProvider` from `@mui/x-date-pickers-pro` and `AdapterDateFns` from `@mui/x-date-pickers-pro/AdapterDateFns`. If you use both components, please use `@mui/x-date-pickers-pro` imports.
215215

216216
**Note:** React-admin only supports the `date-fns` adapter for now.
217217

0 commit comments

Comments
 (0)