Skip to content

Commit

Permalink
Update Dialog paper component
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Feb 4, 2024
1 parent 9791e44 commit 726108f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const Dialog = React.forwardRef(function Dialog(inProps, ref) {

const backwardCompatibleSlots = {
transition: TransitionComponentProp,
paper: DialogPaper,
paper: PaperComponentProp,
...slots,
};
const backwardCompatibleSlotProps = {
Expand All @@ -261,7 +261,7 @@ const Dialog = React.forwardRef(function Dialog(inProps, ref) {
delete transitionProps.ownerState;

const [PaperSlot, paperProps] = useSlot('paper', {
elementType: PaperComponentProp,
elementType: DialogPaper,
externalForwardedProps: {
slots: backwardCompatibleSlots,
slotProps: backwardCompatibleSlotProps,
Expand Down

0 comments on commit 726108f

Please sign in to comment.