From 30a385e03b0f6381039d15bf8a5249d2529d3a09 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 19 Jun 2017 17:09:49 -0300 Subject: [PATCH] Linting --- client/coral-ui/components/Copy.js | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/client/coral-ui/components/Copy.js b/client/coral-ui/components/Copy.js index ca7002aea..7162cd141 100644 --- a/client/coral-ui/components/Copy.js +++ b/client/coral-ui/components/Copy.js @@ -3,28 +3,28 @@ import Clipboard from 'clipboard'; export default class Copy extends Component { - constructor(props) { - super(props); - this.refCopyButton = this.refCopyButton.bind(this); - } + constructor(props) { + super(props); + this.refCopyButton = this.refCopyButton.bind(this); + } - componentDidMount() { - const clipboard = new Clipboard(this.copyButtonEl); + componentDidMount() { + const clipboard = new Clipboard(this.copyButtonEl); - clipboard.on('success', (e) => { - this.props.onCopy(); - e.clearSelection(); - }); - } + clipboard.on('success', (e) => { + this.props.onCopy(); + e.clearSelection(); + }); + } - refCopyButton(button) { - this.copyButtonEl = button; - } + refCopyButton(button) { + this.copyButtonEl = button; + } - render() { - const { children, target = '', text = '' } = this.props; + render() { + const {children, target = '', text = ''} = this.props; - return ( + return ( {children} - ); - } + ); + } }