Skip to content

Commit 80ced46

Browse files
[pickers] Fix unused code in PickersToolbar component (@LukasTy) (#15525)
Co-authored-by: Lukas Tyla <[email protected]>
1 parent 3144e0c commit 80ced46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/x-date-pickers/src/internals/components/PickersToolbar.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ export interface PickersToolbarProps<TValue, TView extends DateOrTimeViewWithMer
1616
}
1717

1818
const useUtilityClasses = (ownerState: PickersToolbarProps<any, any>) => {
19-
const { classes, isLandscape } = ownerState;
19+
const { classes } = ownerState;
2020
const slots = {
2121
root: ['root'],
2222
content: ['content'],
23-
penIconButton: ['penIconButton', isLandscape && 'penIconButtonLandscape'],
2423
};
2524

2625
return composeClasses(slots, getPickersToolbarUtilityClass, classes);

0 commit comments

Comments
 (0)