|
|
@ -14,9 +14,14 @@ CopyButton.prototype.render = function () { |
|
|
|
const props = this.props |
|
|
|
const props = this.props |
|
|
|
const value = props.value |
|
|
|
const value = props.value |
|
|
|
|
|
|
|
|
|
|
|
return h('img.cursor-pointer.color-orange', { |
|
|
|
return h('i.fa.fa-clipboard.cursor-pointer.color-orange', { |
|
|
|
src: 'images/copy.svg', |
|
|
|
title: props.title || 'Copy', |
|
|
|
title: 'Copy Address', |
|
|
|
style: { |
|
|
|
|
|
|
|
display: 'flex', |
|
|
|
|
|
|
|
justifyContent: 'center', |
|
|
|
|
|
|
|
alignItems: 'center', |
|
|
|
|
|
|
|
margin: '5px', |
|
|
|
|
|
|
|
}, |
|
|
|
onClick: (event) => { |
|
|
|
onClick: (event) => { |
|
|
|
event.preventDefault() |
|
|
|
event.preventDefault() |
|
|
|
event.stopPropagation() |
|
|
|
event.stopPropagation() |
|
|
|