Skip to content

Commit

Permalink
increase code density
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 18, 2021
1 parent 5f138ca commit 04f4211
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/material-ui/src/ToggleButtonGroup/ToggleButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@ const ToggleButtonGroupRoot = experimentalStyled(
}));

const ToggleButtonGroup = React.forwardRef(function ToggleButtonGroup(inProps, ref) {
const props = useThemeProps({
props: inProps,
name: 'MuiToggleButtonGroup',
});

const props = useThemeProps({ props: inProps, name: 'MuiToggleButtonGroup' });
const {
children,
className,
Expand All @@ -107,13 +103,7 @@ const ToggleButtonGroup = React.forwardRef(function ToggleButtonGroup(inProps, r
value,
...other
} = props;

const styleProps = {
...props,
orientation,
size,
};

const styleProps = { ...props, orientation, size };
const classes = useUtilityClasses(styleProps);

const handleChange = (event, buttonValue) => {
Expand Down

0 comments on commit 04f4211

Please sign in to comment.