Skip to content

Commit

Permalink
Merge pull request #26 from david-ponc/feature/add-copy-feedback
Browse files Browse the repository at this point in the history
feat: add copy feedback to icon cards
  • Loading branch information
pheralb committed Aug 10, 2023
2 parents 122a909 + b10cd83 commit f3ed82b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/src/components/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const Card = (props: CardProps) => {
toast("Copied to clipboard!", {
icon: "✨",
description: `${txt}`,
onAutoClose: () => copy(""),
})
}

Expand All @@ -26,7 +27,9 @@ const Card = (props: CardProps) => {
onClick={() => copyToClipboard(`<${props.name} />`)}
>
{props.icon}
<p className="mt-2 font-medium text-gray-300">{props.name}</p>
<p className="mt-2 font-medium text-gray-300">
{value ? "Copied!" : props.name}
</p>
</div>
)
}
Expand Down

1 comment on commit f3ed82b

@vercel
Copy link

@vercel vercel bot commented on f3ed82b Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react-symbols – ./

react-symbols-pheralb.vercel.app
react-symbols.vercel.app
react-symbols-git-main-pheralb.vercel.app

Please sign in to comment.