From 7be04ace6cb63da3b8f0fb12bf217bb39e24f415 Mon Sep 17 00:00:00 2001 From: Lukas Date: Wed, 20 Nov 2024 18:03:33 +0200 Subject: [PATCH] [pickers] Fix unused code in `PickersToolbar` component --- .../x-date-pickers/src/internals/components/PickersToolbar.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/x-date-pickers/src/internals/components/PickersToolbar.tsx b/packages/x-date-pickers/src/internals/components/PickersToolbar.tsx index 47a6e0fa53da..680cf8d90a2e 100644 --- a/packages/x-date-pickers/src/internals/components/PickersToolbar.tsx +++ b/packages/x-date-pickers/src/internals/components/PickersToolbar.tsx @@ -16,11 +16,10 @@ export interface PickersToolbarProps) => { - const { classes, isLandscape } = ownerState; + const { classes } = ownerState; const slots = { root: ['root'], content: ['content'], - penIconButton: ['penIconButton', isLandscape && 'penIconButtonLandscape'], }; return composeClasses(slots, getPickersToolbarUtilityClass, classes);