diff --git a/src/components/modals/ImportAccounts/index.js b/src/components/modals/ImportAccounts/index.js index 467abd61..b80fee45 100644 --- a/src/components/modals/ImportAccounts/index.js +++ b/src/components/modals/ImportAccounts/index.js @@ -70,7 +70,6 @@ type Props = { } type StepId = 'chooseCurrency' | 'connectDevice' | 'import' | 'finish' - type ScanStatus = 'idle' | 'scanning' | 'error' | 'finished' type State = { diff --git a/src/components/modals/ImportAccounts/steps/01-step-choose-currency.js b/src/components/modals/ImportAccounts/steps/01-step-choose-currency.js index c82c9c2a..9c1639ef 100644 --- a/src/components/modals/ImportAccounts/steps/01-step-choose-currency.js +++ b/src/components/modals/ImportAccounts/steps/01-step-choose-currency.js @@ -12,6 +12,7 @@ import type { StepProps } from '../index' function StepChooseCurrency({ currency, setState }: StepProps) { return ( { setState({ currency: isArray(currency) && currency.length === 0 ? null : currency, diff --git a/src/components/modals/Receive/01-step-account.js b/src/components/modals/Receive/01-step-account.js index 998fc781..97d0cc6d 100644 --- a/src/components/modals/Receive/01-step-account.js +++ b/src/components/modals/Receive/01-step-account.js @@ -18,6 +18,6 @@ type Props = { export default (props: Props) => ( - + ) diff --git a/src/components/modals/Send/01-step-amount.js b/src/components/modals/Send/01-step-amount.js index aa3ccff0..d159d62c 100644 --- a/src/components/modals/Send/01-step-amount.js +++ b/src/components/modals/Send/01-step-amount.js @@ -63,6 +63,7 @@ function StepAmount({ {account && bridge && transaction ? ( = { bridge: WalletBridge, transaction: Transaction, onChangeTransaction: Transaction => void, + autoFocus?: boolean, } class RecipientField extends Component, { isValid: boolean }> { @@ -59,7 +60,7 @@ class RecipientField extends Component, { isVali } render() { - const { bridge, account, transaction, t } = this.props + const { bridge, account, transaction, t, autoFocus } = this.props const { isValid } = this.state const value = bridge.getTransactionRecipient(account, transaction) return ( @@ -69,6 +70,7 @@ class RecipientField extends Component, { isVali