Skip to content

Commit

Permalink
[pickers] Fix unused code in PickersToolbar component (#15515)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy authored and web-flow committed Nov 21, 2024
1 parent 3144e0c commit cd6329d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ export interface PickersToolbarProps<TValue, TView extends DateOrTimeViewWithMer
}

const useUtilityClasses = (ownerState: PickersToolbarProps<any, any>) => {
const { classes, isLandscape } = ownerState;
const { classes } = ownerState;
const slots = {
root: ['root'],
content: ['content'],
penIconButton: ['penIconButton', isLandscape && 'penIconButtonLandscape'],
};

return composeClasses(slots, getPickersToolbarUtilityClass, classes);
Expand Down

0 comments on commit cd6329d

Please sign in to comment.