From 656cf1afb9a03ed73319ec987fe5c5b7056bb0f4 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Date: Tue, 30 Aug 2022 11:26:19 +0200 Subject: [PATCH] [docs] Fix typo `onYearPicker` to `onYearChange` (#5954) --- CHANGELOG.md | 2 +- docs/data/date-pickers/migration-lab/migration-lab.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aee2395077a..71a353dba426 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -585,7 +585,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos **MonthPicker**: The prop `onMonthChange` has been removed, you can use `onChange` instead since every change is a month change - **YearPicker**: The prop `onYearPicker` has been removed, you can use `onChange` instead since every change is a year change + **YearPicker**: The prop `onYearChange` has been removed, you can use `onChange` instead since every change is a year change **DayPicker**: The prop `isDateDisabled` has been removed, you can now use the same validation props as for the other components (`maxDate`, `minDate`, `shouldDisableDate`, `disableFuture` and `disablePast`) diff --git a/docs/data/date-pickers/migration-lab/migration-lab.md b/docs/data/date-pickers/migration-lab/migration-lab.md index e89b1a91bf92..e06e1154e2f6 100644 --- a/docs/data/date-pickers/migration-lab/migration-lab.md +++ b/docs/data/date-pickers/migration-lab/migration-lab.md @@ -106,7 +106,7 @@ The default behavior remains the same (close after the last step on desktop but The props of `MonthPicker`, `YearPicker` and `DayPicker` have been reworked to make them more consistent for a standalone usage. - **MonthPicker**: The prop `onMonthChange` has been removed, you can use `onChange` instead since every change is a month change. -- **YearPicker**: The prop `onYearPicker` has been removed, you can use `onChange` instead since every change is a year change. +- **YearPicker**: The prop `onYearChange` has been removed, you can use `onChange` instead since every change is a year change. - **DayPicker**: The prop `isDateDisabled` has been removed, you can now use the same validation props as for the other components (`maxDate`, `minDate`, `shouldDisableDate`, `disableFuture` and `disablePast`). #### Translation