diff --git a/docs/pages/x/api/date-pickers/pickers-shortcuts.json b/docs/pages/x/api/date-pickers/pickers-shortcuts.json index 62d701e3e1cf..5aff32c05148 100644 --- a/docs/pages/x/api/date-pickers/pickers-shortcuts.json +++ b/docs/pages/x/api/date-pickers/pickers-shortcuts.json @@ -9,7 +9,7 @@ "items": { "type": { "name": "arrayOf", - "description": "Array<{ getValue: func, key?: string, label: string }>" + "description": "Array<{ getValue: func, id?: string, label: string }>" }, "default": "[]" }, diff --git a/packages/x-date-pickers/src/PickersShortcuts/PickersShortcuts.tsx b/packages/x-date-pickers/src/PickersShortcuts/PickersShortcuts.tsx index 09baa499efae..b0b943ef46d1 100644 --- a/packages/x-date-pickers/src/PickersShortcuts/PickersShortcuts.tsx +++ b/packages/x-date-pickers/src/PickersShortcuts/PickersShortcuts.tsx @@ -138,7 +138,7 @@ PickersShortcuts.propTypes = { items: PropTypes.arrayOf( PropTypes.shape({ getValue: PropTypes.func.isRequired, - key: PropTypes.string, + id: PropTypes.string, label: PropTypes.string.isRequired, }), ),