adjust styling of copy btn tooltip
This commit is contained in:
		
							parent
							
								
									590551fa92
								
							
						
					
					
						commit
						572280f7b4
					
				| @ -16,7 +16,7 @@ export default function AccountCard({ name, logo, rgb, address }: Props) { | |||||||
|   function onCopy() { |   function onCopy() { | ||||||
|     navigator?.clipboard?.writeText(address) |     navigator?.clipboard?.writeText(address) | ||||||
|     setCopied(true) |     setCopied(true) | ||||||
|     setTimeout(() => setCopied(false), 1000) |     setTimeout(() => setCopied(false), 1500) | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ( |   return ( | ||||||
| @ -49,10 +49,10 @@ export default function AccountCard({ name, logo, rgb, address }: Props) { | |||||||
|           </Text> |           </Text> | ||||||
|         </div> |         </div> | ||||||
| 
 | 
 | ||||||
|         <Tooltip content="Copy" color="invert" placement="left"> |         <Tooltip content={copied ? 'Copied!' : 'Copy'} placement="left"> | ||||||
|           <Button |           <Button | ||||||
|             size="sm" |             size="sm" | ||||||
|             css={{ minWidth: 'auto', backgroundColor: 'rgba(255, 255, 255, 0.2)' }} |             css={{ minWidth: 'auto', backgroundColor: 'rgba(255, 255, 255, 0.15)' }} | ||||||
|             onClick={onCopy} |             onClick={onCopy} | ||||||
|           > |           > | ||||||
|             <Image |             <Image | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user