Commit 7ec9a2d6 authored by tom's avatar tom

check icon for clipboard component

parent 2e4117d6
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.78 7.28a.75.75 0 0 0-1.06-1.06l-6.97 6.97-3.47-3.47a.75.75 0 0 0-1.06 1.06l4 4a.75.75 0 0 0 1.06 0l7.5-7.5Z" fill="currentColor"/>
</svg>
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
| "contracts/regular" | "contracts/regular"
| "contracts/verified_many" | "contracts/verified_many"
| "contracts/verified" | "contracts/verified"
| "copy_check"
| "copy" | "copy"
| "cross" | "cross"
| "delete" | "delete"
......
...@@ -29,11 +29,11 @@ const CopyToClipboard = (props: Props) => { ...@@ -29,11 +29,11 @@ const CopyToClipboard = (props: Props) => {
const iconName = (() => { const iconName = (() => {
switch (type) { switch (type) {
case 'link': case 'link':
return 'link'; return hasCopied ? 'check' : 'link';
case 'share': case 'share':
return 'share'; return hasCopied ? 'check' : 'share';
default: default:
return 'copy'; return hasCopied ? 'copy_check' : 'copy';
} }
})(); })();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment