diff --git a/demo/nextjs/components/ui/alert-dialog.tsx b/demo/nextjs/components/ui/alert-dialog.tsx index dd9e5037ff..691315d714 100644 --- a/demo/nextjs/components/ui/alert-dialog.tsx +++ b/demo/nextjs/components/ui/alert-dialog.tsx @@ -16,7 +16,7 @@ const AlertDialogOverlay = ({ className, ...props }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; + ref?: React.RefObject>; }) => ( & { - ref: React.RefObject>; + ref?: React.RefObject>; }) => ( @@ -83,7 +83,7 @@ const AlertDialogTitle = ({ className, ...props }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; + ref?: React.RefObject>; }) => ( & { - ref: React.RefObject< + ref?: React.RefObject< React.ElementRef >; }) => ( @@ -116,7 +116,7 @@ const AlertDialogAction = ({ className, ...props }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; + ref?: React.RefObject>; }) => ( & { - ref: React.RefObject>; + ref?: React.RefObject>; }) => ( ; + ref?: React.RefObject; }) => { return (