import classnames from 'classnames' import PropTypes from 'prop-types' import React, { Component } from 'react' import Button from '../../../components/ui/button' export default class SelectHardware extends Component { static contextTypes = { t: PropTypes.func, } static propTypes = { connectToHardwareWallet: PropTypes.func.isRequired, browserSupported: PropTypes.bool.isRequired, } state = { selectedDevice: null, } connect = () => { if (this.state.selectedDevice) { this.props.connectToHardwareWallet(this.state.selectedDevice) } return null } renderConnectToTrezorButton () { return ( ) } renderConnectToLedgerButton () { return ( ) } renderButtons () { return ( <>
{this.context.t('chromeRequiredForHardwareWallets')}
{this.context.t('hardwareWalletsMsg')}
{this.context.t('dontHaveAHardwareWallet')}
{this.getAffiliateLinks()}{this.context.t('learnMore')}
) } renderTutorialSteps () { const steps = [ { asset: 'hardware-wallet-step-1', dimensions: { width: '225px', height: '75px' }, title: this.context.t('step1HardwareWallet'), message: this.context.t('step1HardwareWalletMsg'), }, { asset: 'hardware-wallet-step-2', dimensions: { width: '300px', height: '100px' }, title: this.context.t('step2HardwareWallet'), message: this.context.t('step2HardwareWalletMsg'), }, { asset: 'hardware-wallet-step-3', dimensions: { width: '120px', height: '90px' }, title: this.context.t('step3HardwareWallet'), message: this.context.t('step3HardwareWalletMsg'), }, ] return ({step.message}
{this.context.t('havingTroubleConnecting')} {this.context.t('getHelp')}