Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 31, 2021
1 parent 2bfbb02 commit 5ac46d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/material-ui/src/DialogTitle/DialogTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DialogTitle = React.forwardRef(function DialogTitle(inProps, ref) {
name: 'MuiDialogTitle',
});

const { children, className, ...other } = props;
const { className, ...other } = props;
const styleProps = props;
const classes = useUtilityClasses(styleProps);

Expand All @@ -44,9 +44,7 @@ const DialogTitle = React.forwardRef(function DialogTitle(inProps, ref) {
ref={ref}
variant="h6"
{...other}
>
{children}
</DialogTitleRoot>
/>
);
});

Expand Down

0 comments on commit 5ac46d0

Please sign in to comment.