Skip to content

Commit

Permalink
[docs] Add migration guide for the removal of LicenseInfo from `@mu…
Browse files Browse the repository at this point in the history
…i/x-date-pickers-pro` (#15321)
  • Loading branch information
flaviendelangle authored Nov 7, 2024
1 parent 0623f19 commit 8ed33b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,18 @@ If you were using them, you need to replace them with the following code:
UseDateTimeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>;
```

## Stop using `LicenseInfo` from `@mui/x-date-pickers-pro`

The `LicenseInfo` object is not exported from the `@mui/x-date-pickers-pro` package anymore.
You can import it from `@mui/x-license` instead:

```diff
-import { LicenseInfo } from '@mui/x-date-pickers-pro';
+import { LicenseInfo } from '@mui/x-license';

LicenseInfo.setLicenseKey('YOUR_LICENSE_KEY');
```

## Stop passing `utils` and the date object to some translation keys

Some translation keys no longer require `utils` and the date object as parameters, but only the formatted value as a string. The keys affected by this changes are: `clockLabelText`, `openDatePickerDialogue` and `openTimePickerDialogue`.
Expand Down

0 comments on commit 8ed33b2

Please sign in to comment.