From 0873835339909f3f890995607be913b5b1301497 Mon Sep 17 00:00:00 2001 From: Temkin Mengsitu Date: Mon, 11 Nov 2024 12:10:04 +0400 Subject: [PATCH] fix: ensure block component name is copied in shadcn (#5790) --- apps/www/components/block-viewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/components/block-viewer.tsx b/apps/www/components/block-viewer.tsx index 9fcf2fc752e..801f7248158 100644 --- a/apps/www/components/block-viewer.tsx +++ b/apps/www/components/block-viewer.tsx @@ -166,7 +166,7 @@ function BlockViewerToolbar() { className="hidden h-7 w-7 rounded-md border bg-transparent shadow-none md:flex lg:w-auto" size="sm" onClick={() => { - copyToClipboard(`npx shadcn@latest add ${name}`) + copyToClipboard(`npx shadcn@latest add ${item.name}`) }} > {isCopied ? : }