@@ -35,17 +35,19 @@ interface IDialogBackgroupProps
35
35
VariantProps < typeof overlayVariants > { }
36
36
37
37
const DialogBackdrop = React . forwardRef < HTMLDivElement , IDialogBackgroupProps > (
38
- ( inputProps : IDialogBackgroupProps , forwardedRef ) => {
38
+ function DialogBackdrop ( inputProps : IDialogBackgroupProps , forwardedRef ) {
39
39
const { variant = "default" , className, ...props } = inputProps ;
40
40
41
41
return (
42
42
< ReactDialog . Overlay
43
43
className = { cn ( overlayVariants ( { variant } ) , className ) }
44
+ ref = { forwardedRef }
44
45
{ ...props }
45
46
/>
46
47
) ;
47
48
}
48
49
) ;
50
+ DialogBackdrop . displayName = "DialogBackdrop" ;
49
51
50
52
const dialogVariants = cva (
51
53
`fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2
@@ -88,7 +90,7 @@ interface IDialogContentProps
88
90
}
89
91
90
92
const DialogContent = React . forwardRef < HTMLDivElement , IDialogContentProps > (
91
- ( inputProps : IDialogContentProps , forwardedRef ) => {
93
+ function DialogContent ( inputProps : IDialogContentProps , forwardedRef ) {
92
94
const {
93
95
children,
94
96
size = "auto" ,
@@ -114,6 +116,7 @@ const DialogContent = React.forwardRef<HTMLDivElement, IDialogContentProps>(
114
116
) ;
115
117
}
116
118
) ;
119
+ DialogContent . displayName = "DialogContent" ;
117
120
118
121
interface IDialogDescriptionProps extends HTMLAttributes < HTMLDivElement > { }
119
122
const DialogDescription = ( {
0 commit comments