Skip to content

Commit

Permalink
fix: ensure block component name is copied in shadcn (#5790)
Browse files Browse the repository at this point in the history
  • Loading branch information
chapimenge3 authored Nov 11, 2024
1 parent 4a0d4cf commit 0873835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/components/block-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? <Check /> : <Terminal />}
Expand Down

0 comments on commit 0873835

Please sign in to comment.