From 4644c6d1bcdadbed00ded8867d23a5f8949ec32f Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Fri, 24 Aug 2018 09:01:26 +0200 Subject: [PATCH] Remove "ConnectDevice" from global components --- src/js/components/landing/ConnectDevice.js | 114 --------------------- 1 file changed, 114 deletions(-) delete mode 100644 src/js/components/landing/ConnectDevice.js diff --git a/src/js/components/landing/ConnectDevice.js b/src/js/components/landing/ConnectDevice.js deleted file mode 100644 index f1034ecd..00000000 --- a/src/js/components/landing/ConnectDevice.js +++ /dev/null @@ -1,114 +0,0 @@ -/* @flow */ - - -import React, { Component } from 'react'; -import TrezorConnect from 'trezor-connect'; - -import type { State, TrezorDevice } from '~/flowtype'; - -type Props = { - transport: $PropertyType<$ElementType, 'transport'>; - disconnectRequest: ?TrezorDevice; -} - -const DisconnectDevice = (props: Props) => { - if (!props.disconnectRequest) return null; - return ( -
-

The private bank in your hands.

-

TREZOR Wallet is an easy-to-use interface for your TREZOR.

-

TREZOR Wallet allows you to easily control your funds, manage your balance and initiate transfers.

-
-

- - Unplug { props.disconnectRequest.label } device. - -

-
-
-
- ); -}; - -const ConnectHIDDevice = (props: Props) => ( -
-

The private bank in your hands.

-

TREZOR Wallet is an easy-to-use interface for your TREZOR.

-

TREZOR Wallet allows you to easily control your funds, manage your balance and initiate transfers.

-
-

- - - - - - - - - - Connect TREZOR to continue - -

-
-
-

- Don't have TREZOR? Get one -

-
-
-); - -class ConnectWebUsbDevice extends Component { - componentDidMount(): void { - TrezorConnect.renderWebUSBButton(); - } - - componentDidUpdate() { - TrezorConnect.renderWebUSBButton(); - } - - render() { - return ( -
-

The private bank in your hands.

-

TREZOR Wallet is an easy-to-use interface for your TREZOR.

-

TREZOR Wallet allows you to easily control your funds, manage your balance and initiate transfers.

-
-

- - - - - - - - - - Connect TREZOR - -

-

and

- -
-
-

- Device not recognized? Try installing the TREZOR Bridge. - Don't have TREZOR? Get one -

-
-
- ); - } -} - -const ConnectDevice = (props: Props) => { - const { transport, disconnectRequest } = props; - if (disconnectRequest) { - return ; - } if (transport && transport.version.indexOf('webusb') >= 0) { - return ; - } - return ; -}; - -export default ConnectDevice; \ No newline at end of file