Skip to content

Commit

Permalink
remove unnecessary function declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Aug 16, 2022
1 parent 68a2091 commit adb6d4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mui-material/src/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,18 @@ const Modal = React.forwardRef(function Modal(inProps, ref) {
...components,
}}
componentsProps={{
root: () => ({
root: {
...resolveComponentProps(componentsProps.root, ownerState),
...(!isHostComponent(Root) && { theme }),
/** We pass the 'as' prop always because components.Root is set as ModalRoot wrapped with the
* styled API which thus supports the 'as' prop for host or React components.
*/
as: Root,
}),
backdrop: () => ({
},
backdrop: {
...BackdropProps,
...resolveComponentProps(componentsProps.backdrop, ownerState),
}),
},
}}
onTransitionEnter={() => setExited(false)}
onTransitionExited={() => setExited(true)}
Expand Down

0 comments on commit adb6d4e

Please sign in to comment.