check icon for clipboard component

This commit is contained in:
tom
2025-04-22 14:18:18 +02:00
parent 3afa33e519
commit c82bcabf1b
3 changed files with 7 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
<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>

After

Width:  |  Height:  |  Size: 226 B

+1
View File
@@ -44,6 +44,7 @@
| "contracts/regular"
| "contracts/verified_many"
| "contracts/verified"
| "copy_check"
| "copy"
| "cross"
| "delete"
+3 -3
View File
@@ -29,11 +29,11 @@ const CopyToClipboard = (props: Props) => {
const iconName = (() => {
switch (type) {
case 'link':
return 'link';
return hasCopied ? 'check' : 'link';
case 'share':
return 'share';
return hasCopied ? 'check' : 'share';
default:
return 'copy';
return hasCopied ? 'copy_check' : 'copy';
}
})();