mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
hide ledger instructions
This commit is contained in:
parent
f09a8a9b93
commit
35bc7428bb
@ -1,7 +1,7 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { memoize } from 'lodash';
|
||||
import PropTypes from 'prop-types';
|
||||
import LedgerInstructionField from '../ledger-instruction-field';
|
||||
// import LedgerInstructionField from '../ledger-instruction-field';
|
||||
import { sanitizeMessage, getURLHostName } from '../../../helpers/utils/util';
|
||||
import { EVENT } from '../../../../shared/constants/metametrics';
|
||||
import SiteOrigin from '../../ui/site-origin';
|
||||
@ -43,7 +43,7 @@ export default class SignatureRequest extends PureComponent {
|
||||
/**
|
||||
* Check if the wallet is ledget wallet or not
|
||||
*/
|
||||
isLedgerWallet: PropTypes.bool,
|
||||
// isLedgerWallet: PropTypes.bool,
|
||||
/**
|
||||
* Handler for cancel button
|
||||
*/
|
||||
@ -154,7 +154,7 @@ export default class SignatureRequest extends PureComponent {
|
||||
fromAccount: { address, balance, name },
|
||||
cancel,
|
||||
sign,
|
||||
isLedgerWallet,
|
||||
// isLedgerWallet,
|
||||
hardwareWalletRequiresConnection,
|
||||
chainId,
|
||||
rpcPrefs,
|
||||
@ -302,11 +302,11 @@ export default class SignatureRequest extends PureComponent {
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
{isLedgerWallet ? (
|
||||
{/* {isLedgerWallet ? (
|
||||
<div className="confirm-approve-content__ledger-instruction-wrapper">
|
||||
<LedgerInstructionField showDataInstruction />
|
||||
</div>
|
||||
) : null}
|
||||
) : null} */}
|
||||
<Message
|
||||
data={sanitizedMessage}
|
||||
onMessageScrolled={() => this.setState({ hasScrolledMessage: true })}
|
||||
|
@ -41,7 +41,7 @@ import {
|
||||
} from '../../selectors';
|
||||
import { getMostRecentOverviewPage } from '../../ducks/history/history';
|
||||
import {
|
||||
isAddressLedger,
|
||||
// isAddressLedger,
|
||||
updateGasFees,
|
||||
getIsGasEstimatesLoading,
|
||||
getNativeCurrency,
|
||||
@ -197,7 +197,7 @@ const mapStateToProps = (state, ownProps) => {
|
||||
const gasFeeIsCustom =
|
||||
fullTxData.userFeeLevel === CUSTOM_GAS_ESTIMATE ||
|
||||
txParamsAreDappSuggested(fullTxData);
|
||||
const fromAddressIsLedger = isAddressLedger(state, fromAddress);
|
||||
// const fromAddressIsLedger = isAddressLedger(state, fromAddress);
|
||||
const nativeCurrency = getNativeCurrency(state);
|
||||
|
||||
const hardwareWalletRequiresConnection =
|
||||
@ -250,7 +250,7 @@ const mapStateToProps = (state, ownProps) => {
|
||||
maxPriorityFeePerGas: gasEstimationObject.maxPriorityFeePerGas,
|
||||
baseFeePerGas: gasEstimationObject.baseFeePerGas,
|
||||
gasFeeIsCustom,
|
||||
showLedgerSteps: fromAddressIsLedger,
|
||||
showLedgerSteps: false,
|
||||
nativeCurrency,
|
||||
hardwareWalletRequiresConnection,
|
||||
isMultiLayerFeeNetwork,
|
||||
|
Loading…
Reference in New Issue
Block a user