summaryrefslogtreecommitdiff
path: root/animism-align/frontend/common/copyToClipboardButton.component.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-22 14:05:15 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-22 14:05:15 +0200
commitef78bc6a084f92b4794e987b5832240d85b6479e (patch)
treeb314b630800db6aa60f28ef0b115625e6ca176db /animism-align/frontend/common/copyToClipboardButton.component.js
parent85d4cb9addf9ca887d3440b2786665d67d9917c4 (diff)
refactor app using babel module-resolver
Diffstat (limited to 'animism-align/frontend/common/copyToClipboardButton.component.js')
-rw-r--r--animism-align/frontend/common/copyToClipboardButton.component.js24
1 files changed, 0 insertions, 24 deletions
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 (
- <button
- className={this.state.copied ? 'copyButton copied' : 'copyButton'}
- onClick={this.handleClick.bind(this)}
- >
- {this.state.copied ? 'Copied!' : 'Copy'}
- </button>
- )
- }
-}