From 25037da3b44549a6278ac2334eaf1eeba787f9fd Mon Sep 17 00:00:00 2001 From: Flavien DELANGLE Date: Mon, 30 Dec 2024 09:46:07 +0100 Subject: [PATCH] Update docs/data/migration/migration-pickers-v7/migration-pickers-v7.md Co-authored-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com> Signed-off-by: Flavien DELANGLE --- .../migration/migration-pickers-v7/migration-pickers-v7.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/data/migration/migration-pickers-v7/migration-pickers-v7.md b/docs/data/migration/migration-pickers-v7/migration-pickers-v7.md index f6fd6d5256ab0..fb1317ed6bea8 100644 --- a/docs/data/migration/migration-pickers-v7/migration-pickers-v7.md +++ b/docs/data/migration/migration-pickers-v7/migration-pickers-v7.md @@ -639,7 +639,8 @@ You can use the `usePickerContext` hook instead: The only difference is that `usePickerActionsContext` only contains variables with stable references that won't cause a re-render of your component. ::: -- The component passed to the `shortcuts` slot no longer receives the `isValid` prop, instead you can use the `useIsValidValue` hook: +- The component passed to the `shortcuts` slot no longer receives the `isValid` prop. +You can use the `useIsValidValue` hook instead: ```diff +import { useIsValidValue } from '@mui/x-date-pickers/hooks';