From 3bc04384d86b79a83793fc0d13644f3c8f98fb31 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Thu, 6 Nov 2025 21:00:50 -0800 Subject: [PATCH] chore(demo): fix `ref` type (#5817) --- demo/nextjs/components/ui/alert-dialog.tsx | 12 ++++++------ demo/nextjs/components/ui/textarea.tsx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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 (