summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-07-25 15:11:12 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-07-25 15:11:12 +0200
commit4e801ef1d4b70b876ee3f2d025a16cf7d46cfab7 (patch)
treee1cd76670c9732208cee936881e372c13e19ba2d /app/components
parent843f74f5c4be4ff57f6eb9b69949f6147509901b (diff)
downloadmullvadvpn-4e801ef1d4b70b876ee3f2d025a16cf7d46cfab7.tar.xz
mullvadvpn-4e801ef1d4b70b876ee3f2d025a16cf7d46cfab7.zip
Replace custom ClipboardData with DataTransfer type
Diffstat (limited to 'app/components')
-rw-r--r--app/components/AccountInput.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/components/AccountInput.js b/app/components/AccountInput.js
index cb7cd258c5..32ad0aeb22 100644
--- a/app/components/AccountInput.js
+++ b/app/components/AccountInput.js
@@ -4,17 +4,9 @@ import { TextInput } from 'reactxp';
import { formatAccount } from '../lib/formatters';
import { colors } from '../config';
-// @TODO: move it into types.js
-
// ESLint issue: https://github.com/babel/babel-eslint/issues/445
-// eslint-disable-next-line no-unused-vars
-declare class ClipboardData {
- setData(type: string, data: string): void;
- getData(type: string): string;
-}
-
declare class ClipboardEvent extends Event {
- clipboardData: ClipboardData;
+ clipboardData: DataTransfer;
}
export type AccountInputProps = {