From 646730f57244bde636ebc24cf74cccd67af705e1 Mon Sep 17 00:00:00 2001 From: Rodrigo Santos Date: Fri, 31 Oct 2025 09:36:30 +0000 Subject: [PATCH] fix(empty): correct EmptyDescription type from "p" to "div" The EmptyDescription component was typed to accept React.ComponentProps<"p"> but renders a
element. This type mismatch could lead to confusion and potential type errors if paragraph-specific props are passed. Changed the type definition to React.ComponentProps<"div"> to match the actual rendered element. --- apps/v4/registry/new-york-v4/ui/empty.tsx | 2 +- deprecated/www/registry/default/ui/empty.tsx | 2 +- deprecated/www/registry/new-york/ui/empty.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/v4/registry/new-york-v4/ui/empty.tsx b/apps/v4/registry/new-york-v4/ui/empty.tsx index df91e9d802c..d28837746b7 100644 --- a/apps/v4/registry/new-york-v4/ui/empty.tsx +++ b/apps/v4/registry/new-york-v4/ui/empty.tsx @@ -68,7 +68,7 @@ function EmptyTitle({ className, ...props }: React.ComponentProps<"div">) { ) } -function EmptyDescription({ className, ...props }: React.ComponentProps<"p">) { +function EmptyDescription({ className, ...props }: React.ComponentProps<"div">) { return (
) { ) } -function EmptyDescription({ className, ...props }: React.ComponentProps<"p">) { +function EmptyDescription({ className, ...props }: React.ComponentProps<"div">) { return (
) { ) } -function EmptyDescription({ className, ...props }: React.ComponentProps<"p">) { +function EmptyDescription({ className, ...props }: React.ComponentProps<"div">) { return (