@@ -35,17 +35,19 @@ interface IDialogBackgroupProps
3535 VariantProps < typeof overlayVariants > { }
3636
3737const DialogBackdrop = React . forwardRef < HTMLDivElement , IDialogBackgroupProps > (
38- ( inputProps : IDialogBackgroupProps , forwardedRef ) => {
38+ function DialogBackdrop ( inputProps : IDialogBackgroupProps , forwardedRef ) {
3939 const { variant = "default" , className, ...props } = inputProps ;
4040
4141 return (
4242 < ReactDialog . Overlay
4343 className = { cn ( overlayVariants ( { variant } ) , className ) }
44+ ref = { forwardedRef }
4445 { ...props }
4546 />
4647 ) ;
4748 }
4849) ;
50+ DialogBackdrop . displayName = "DialogBackdrop" ;
4951
5052const dialogVariants = cva (
5153 `fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2
@@ -88,7 +90,7 @@ interface IDialogContentProps
8890}
8991
9092const DialogContent = React . forwardRef < HTMLDivElement , IDialogContentProps > (
91- ( inputProps : IDialogContentProps , forwardedRef ) => {
93+ function DialogContent ( inputProps : IDialogContentProps , forwardedRef ) {
9294 const {
9395 children,
9496 size = "auto" ,
@@ -114,6 +116,7 @@ const DialogContent = React.forwardRef<HTMLDivElement, IDialogContentProps>(
114116 ) ;
115117 }
116118) ;
119+ DialogContent . displayName = "DialogContent" ;
117120
118121interface IDialogDescriptionProps extends HTMLAttributes < HTMLDivElement > { }
119122const DialogDescription = ( {
0 commit comments