From a17b76ac75f506f5da6fe8adf9c36632b60d4226 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 26 Sep 2020 14:56:02 +0200 Subject: refactor to use app-rooted js imports --- frontend/common/copyToClipboardButton.component.js | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 frontend/common/copyToClipboardButton.component.js (limited to 'frontend/common/copyToClipboardButton.component.js') diff --git a/frontend/common/copyToClipboardButton.component.js b/frontend/common/copyToClipboardButton.component.js deleted file mode 100644 index cfe7103..0000000 --- a/frontend/common/copyToClipboardButton.component.js +++ /dev/null @@ -1,24 +0,0 @@ -import React, { Component } from 'react'; -import { writeToClipboard } from '../util' - -export default class CopyToClipboardButton extends Component { - state = { - copied: false, - } - - handleClick() { - writeToClipboard(this.props.data) - this.setState({ copied: true }) - } - - render() { - return ( - - ) - } -} -- cgit v1.2.3-70-g09d2