From 34ca5a6d1d1d74ceb81e59957720f6579f4dad2a Mon Sep 17 00:00:00 2001 From: James Prado Date: Mon, 27 Nov 2017 23:52:52 -0500 Subject: [PATCH] Show confirm transaction copy during hardware wallet signing (#454) * Add msg for users to confirm tx on hw * Update msg --- .../containers/Tabs/SendTransaction/index.tsx | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/common/containers/Tabs/SendTransaction/index.tsx b/common/containers/Tabs/SendTransaction/index.tsx index 945ae57e..c12d82a5 100644 --- a/common/containers/Tabs/SendTransaction/index.tsx +++ b/common/containers/Tabs/SendTransaction/index.tsx @@ -32,7 +32,13 @@ import { import { UnitKey, Wei, getDecimal, toWei } from 'libs/units'; import { isValidETHAddress } from 'libs/validators'; // LIBS -import { IWallet, Balance, Web3Wallet } from 'libs/wallet'; +import { + IWallet, + Balance, + Web3Wallet, + LedgerWallet, + TrezorWallet +} from 'libs/wallet'; import pickBy from 'lodash/pickBy'; import React from 'react'; // REDUX @@ -265,6 +271,8 @@ export class SendTransaction extends React.Component { ? getDecimal('ether') : (this.state.token && this.state.token.decimal) || 0; const isWeb3Wallet = this.props.wallet instanceof Web3Wallet; + const isLedgerWallet = this.props.wallet instanceof LedgerWallet; + const isTrezorWallet = this.props.wallet instanceof TrezorWallet; return (
@@ -353,7 +361,18 @@ export class SendTransaction extends React.Component { {generateTxProcessing && (
- + {isLedgerWallet || isTrezorWallet ? ( +
+

+ + Confirm transaction on hardware wallet + +

+ +
+ ) : ( + + )}
)}