@@ -14,7 +14,7 @@ const DialogPortal = DialogPrimitive.Portal
1414const DialogClose = DialogPrimitive . Close
1515
1616const DialogOverlay = React . forwardRef <
17- React . ElementRef < typeof DialogPrimitive . Overlay > ,
17+ React . ComponentRef < typeof DialogPrimitive . Overlay > ,
1818 React . ComponentPropsWithoutRef < typeof DialogPrimitive . Overlay >
1919> ( ( { className, ...props } , ref ) => (
2020 < DialogPrimitive . Overlay
@@ -29,7 +29,7 @@ const DialogOverlay = React.forwardRef<
2929DialogOverlay . displayName = DialogPrimitive . Overlay . displayName
3030
3131const DialogContent = React . forwardRef <
32- React . ElementRef < typeof DialogPrimitive . Content > ,
32+ React . ComponentRef < typeof DialogPrimitive . Content > ,
3333 React . ComponentPropsWithoutRef < typeof DialogPrimitive . Content >
3434> ( ( { className, children, ...props } , ref ) => (
3535 < DialogPortal >
@@ -201,7 +201,7 @@ const DialogFooter = ({
201201DialogFooter . displayName = "DialogFooter"
202202
203203const DialogTitle = React . forwardRef <
204- React . ElementRef < typeof DialogPrimitive . Title > ,
204+ React . ComponentRef < typeof DialogPrimitive . Title > ,
205205 React . ComponentPropsWithoutRef < typeof DialogPrimitive . Title >
206206> ( ( { className, ...props } , ref ) => (
207207 < DialogPrimitive . Title
@@ -216,7 +216,7 @@ const DialogTitle = React.forwardRef<
216216DialogTitle . displayName = DialogPrimitive . Title . displayName
217217
218218const DialogDescription = React . forwardRef <
219- React . ElementRef < typeof DialogPrimitive . Description > ,
219+ React . ComponentRef < typeof DialogPrimitive . Description > ,
220220 React . ComponentPropsWithoutRef < typeof DialogPrimitive . Description >
221221> ( ( { className, ...props } , ref ) => (
222222 < DialogPrimitive . Description
0 commit comments