Browse Source

Merge pull request #1102 from gre/fix/1099

Fixes #1099
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
5196e32d78
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 67
      src/components/modals/Send/steps/01-step-amount.js

67
src/components/modals/Send/steps/01-step-amount.js

@ -45,45 +45,36 @@ export default ({
{account &&
bridge &&
transaction && (
<RecipientField
autoFocus={openedFromAccount}
account={account}
bridge={bridge}
transaction={transaction}
onChangeTransaction={onChangeTransaction}
t={t}
/>
)}
{account &&
bridge &&
transaction && (
<AmountField
key={account.id}
account={account}
bridge={bridge}
transaction={transaction}
onChangeTransaction={onChangeTransaction}
t={t}
/>
)}
{account &&
bridge &&
transaction &&
FeesField && (
<FeesField account={account} value={transaction} onChange={onChangeTransaction} />
)}
<Fragment key={account.id}>
<RecipientField
autoFocus={openedFromAccount}
account={account}
bridge={bridge}
transaction={transaction}
onChangeTransaction={onChangeTransaction}
t={t}
/>
<AmountField
account={account}
bridge={bridge}
transaction={transaction}
onChangeTransaction={onChangeTransaction}
t={t}
/>
{FeesField && (
<FeesField account={account} value={transaction} onChange={onChangeTransaction} />
)}
{account &&
bridge &&
transaction &&
AdvancedOptionsField && (
<AdvancedOptionsField
account={account}
value={transaction}
onChange={onChangeTransaction}
/>
{AdvancedOptionsField && (
<AdvancedOptionsField
account={account}
value={transaction}
onChange={onChangeTransaction}
/>
)}
</Fragment>
)}
</Box>
)

Loading…
Cancel
Save