From e9e947583091f0fd64b747ec25fc7fa71d2d9572 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 14 Nov 2016 11:39:36 +0100 Subject: [PATCH] CopyToClipboard: remove tooltip --- js/src/ui/CopyToClipboard/copyToClipboard.css | 4 ++++ js/src/ui/CopyToClipboard/copyToClipboard.js | 9 ++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/js/src/ui/CopyToClipboard/copyToClipboard.css b/js/src/ui/CopyToClipboard/copyToClipboard.css index acf2bb204..0c511ba45 100644 --- a/js/src/ui/CopyToClipboard/copyToClipboard.css +++ b/js/src/ui/CopyToClipboard/copyToClipboard.css @@ -15,6 +15,10 @@ /* along with Parity. If not, see . */ +.wrapper { + display: inline-block; +} + .data { font-family: monospace; } diff --git a/js/src/ui/CopyToClipboard/copyToClipboard.js b/js/src/ui/CopyToClipboard/copyToClipboard.js index c78038617..568520b09 100644 --- a/js/src/ui/CopyToClipboard/copyToClipboard.js +++ b/js/src/ui/CopyToClipboard/copyToClipboard.js @@ -28,7 +28,6 @@ import styles from './copyToClipboard.css'; export default class CopyToClipboard extends Component { static propTypes = { data: PropTypes.string.isRequired, - label: PropTypes.string, onCopy: PropTypes.func, size: PropTypes.number, // in px cooldown: PropTypes.number // in ms @@ -36,7 +35,6 @@ export default class CopyToClipboard extends Component { static defaultProps = { className: '', - label: 'copy to clipboard', onCopy: () => {}, size: 16, cooldown: 1000 @@ -55,12 +53,12 @@ export default class CopyToClipboard extends Component { } render () { - const { data, label, size } = this.props; + const { data, size } = this.props; const { copied } = this.state; return ( -
+