We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c478eac commit 61495b0Copy full SHA for 61495b0
client/src/components/common/CopyButton/index.tsx
@@ -1,12 +1,11 @@
1
import { BiCopy } from '@react-icons/all-files/bi/BiCopy';
2
-import React from 'react';
3
4
-interface CopyButton {
+interface CopyButtonProps {
5
target: string;
6
className?: string;
7
}
8
9
-function CopyButton({ target, className }: CopyButton) {
+function CopyButton({ target, className }: CopyButtonProps) {
10
const onCopy = async () => {
11
try {
12
await navigator.clipboard.writeText(target);
0 commit comments