mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
check icon for clipboard component
This commit is contained in:
@@ -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 |
Vendored
+1
@@ -44,6 +44,7 @@
|
||||
| "contracts/regular"
|
||||
| "contracts/verified_many"
|
||||
| "contracts/verified"
|
||||
| "copy_check"
|
||||
| "copy"
|
||||
| "cross"
|
||||
| "delete"
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user