Skip to content

Commit a37332a

Browse files
authored
[docs][Dialog] Replace TranstionProps with slotProps.transition (#47569)
1 parent 0920472 commit a37332a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/data/material/components/dialogs/ConfirmationDialog.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ function ConfirmationDialogRaw(props) {
6363
<Dialog
6464
sx={{ '& .MuiDialog-paper': { width: '80%', maxHeight: 435 } }}
6565
maxWidth="xs"
66-
TransitionProps={{ onEntering: handleEntering }}
66+
slotProps={{
67+
transition: {
68+
onEntering: handleEntering,
69+
},
70+
}}
6771
open={open}
6872
{...other}
6973
>

docs/data/material/components/dialogs/ConfirmationDialog.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ function ConfirmationDialogRaw(props: ConfirmationDialogRawProps) {
7070
<Dialog
7171
sx={{ '& .MuiDialog-paper': { width: '80%', maxHeight: 435 } }}
7272
maxWidth="xs"
73-
TransitionProps={{ onEntering: handleEntering }}
73+
slotProps={{
74+
transition: {
75+
onEntering: handleEntering,
76+
},
77+
}}
7478
open={open}
7579
{...other}
7680
>

0 commit comments

Comments
 (0)