From ef78bc6a084f92b4794e987b5832240d85b6479e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 22 Jul 2020 14:05:15 +0200 Subject: refactor app using babel module-resolver --- .../common/copyToClipboardButton.component.js | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 animism-align/frontend/common/copyToClipboardButton.component.js (limited to 'animism-align/frontend/common/copyToClipboardButton.component.js') diff --git a/animism-align/frontend/common/copyToClipboardButton.component.js b/animism-align/frontend/common/copyToClipboardButton.component.js deleted file mode 100644 index cfe7103..0000000 --- a/animism-align/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