Skip to content

Commit

Permalink
[core] Remove need to reinject backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 23, 2021
1 parent c425353 commit 959748f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/material-ui/src/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import capitalize from '../utils/capitalize';
import Modal from '../Modal';
import Backdrop from '../Backdrop';
import Fade from '../Fade';
import { duration } from '../styles/transitions';
import Paper from '../Paper';
Expand Down Expand Up @@ -189,7 +188,6 @@ const Dialog = React.forwardRef(function Dialog(props, ref) {
return (
<Modal
className={clsx(classes.root, className)}
BackdropComponent={Backdrop}
BackdropProps={{
transitionDuration,
...BackdropProps,
Expand Down
2 changes: 0 additions & 2 deletions packages/material-ui/src/Drawer/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import Modal from '../Modal';
import Backdrop from '../Backdrop';
import withStyles from '../styles/withStyles';
import Slide from '../Slide';
import Paper from '../Paper';
Expand Down Expand Up @@ -186,7 +185,6 @@ const Drawer = React.forwardRef(function Drawer(props, ref) {
...BackdropPropsProp,
transitionDuration,
}}
BackdropComponent={Backdrop}
className={clsx(classes.root, classes.modal, className)}
open={open}
onClose={onClose}
Expand Down

0 comments on commit 959748f

Please sign in to comment.